This commit is contained in:
joygnu 2024-08-31 15:04:04 +02:00
parent 9f823c29c6
commit cad9f0b20d
5 changed files with 20 additions and 21 deletions

View file

@ -25,7 +25,6 @@
./hyprland ./hyprland
./hypridle ./hypridle
./newsboat ./newsboat
./homemisc
./git ./git
./gtk ./gtk
./ags ./ags

View file

@ -1,19 +0,0 @@
{lib, ...}: {
home-manager.users.joy.home = {
username = "joy";
homeDirectory = "/home/joy";
stateVersion = "23.11";
sessionVariables = {
};
};
home-manager.users.joy.programs.home-manager.enable = true;
home-manager.users.joy.xdg.mimeApps.defaultApplications = {
"text/plain" = ["helix.desktop"];
"image/*" = ["imv.desktop"];
"video/png" = ["mpv.desktop"];
"video/jpg" = ["mpv.desktop"];
"video/*" = ["mpv.desktop"];
};
}

View file

@ -22,4 +22,21 @@
time.timeZone = "Europe/Zurich"; time.timeZone = "Europe/Zurich";
system.stateVersion = "23.11"; system.stateVersion = "23.11";
home-manager.backupFileExtension = "backup"; home-manager.backupFileExtension = "backup";
home-manager.users.joy.home = {
username = "joy";
homeDirectory = "/home/joy";
stateVersion = "23.11";
sessionVariables = {
};
};
home-manager.users.joy.programs.home-manager.enable = true;
home-manager.users.joy.xdg.mimeApps.defaultApplications = {
"text/plain" = ["helix.desktop"];
"image/*" = ["imv.desktop"];
"video/png" = ["mpv.desktop"];
"video/jpg" = ["mpv.desktop"];
"video/*" = ["mpv.desktop"];
};
} }

View file

@ -17,7 +17,7 @@
ip = "sh ~/nix/modules/zsh/ip.sh"; ip = "sh ~/nix/modules/zsh/ip.sh";
fr = "sudo systemctl reboot --firmware"; fr = "sudo systemctl reboot --firmware";
ser = "ssh root@joygnu.org"; ser = "ssh root@joygnu.org";
rb = "sh ~/nix/home/modules/rebuild.sh"; rb = "sh ~/nix/modules/rebuild.sh";
up = "sudo nix flake update ~/nix"; up = "sudo nix flake update ~/nix";
del = "sudo nix-collect-garbage -d"; del = "sudo nix-collect-garbage -d";
}; };

View file

@ -2,6 +2,8 @@
hostname=$(hostname) hostname=$(hostname)
git add .
if [[ $hostname == *"desktop"* ]]; then if [[ $hostname == *"desktop"* ]]; then
sudo nixos-rebuild switch --flake ~/nix/#desktop sudo nixos-rebuild switch --flake ~/nix/#desktop
elif [[ $hostname == *"laptop"* ]]; then elif [[ $hostname == *"laptop"* ]]; then