Add extra commands for updating home-manager only

This commit is contained in:
Jimbo 2024-08-29 03:13:41 -04:00
parent d74444bd2f
commit beabcee865
3 changed files with 7 additions and 12 deletions

View file

@ -43,11 +43,9 @@
shellAliases = let shellAliases = let
auth = import ./common/auth.nix; auth = import ./common/auth.nix;
in { in {
nixdate = '' sysdate = "${auth.method} nixos-rebuild switch --flake /etc/nixos/.#JimDesktop";
${auth.method} nixos-rebuild switch --flake /etc/nixos/.#JimDesktop; homedate = "home-manager switch --flake /etc/nixos/.#jimbo@JimDesktop";
home-manager switch --flake /etc/nixos/.#jimbo@JimDesktop; nixdate = "sysdate; homedate; notify-send 'NixOS switch done.'";
notify-send "NixOS switch finished."
'';
}; };
}; };

View file

@ -11,10 +11,9 @@
shellAliases = let shellAliases = let
auth = import ./common/auth.nix; auth = import ./common/auth.nix;
in { in {
nixdate = '' sysdate = "${auth.method} nixos-rebuild switch --flake /etc/nixos/.#JimServer";
${auth.method} nixos-rebuild switch --flake /etc/nixos/.#JimServer; homedate = "home-manager switch --flake /etc/nixos/.#jimbo@JimServer";
home-manager switch --flake /etc/nixos/.#jimbo@JimServer; nixdate = "sysdate; homedate; notify-send 'NixOS switch done.'";
'';
}; };
}; };
} }

View file

@ -10,9 +10,7 @@
shellAliases = let shellAliases = let
auth = import ./common/auth.nix; auth = import ./common/auth.nix;
in { in {
nixdate = '' homedate = "home-manager switch --flake ~/.home-manager/.#jimbo@SSH --extra-experimental-features 'nix-command flakes'";
home-manager switch --flake ~/.home-manager/.#jimbo@SSH --extra-experimental-features "nix-command flakes"
'';
}; };
}; };
} }