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
auth = import ./common/auth.nix;
in {
nixdate = ''
${auth.method} nixos-rebuild switch --flake /etc/nixos/.#JimDesktop;
home-manager switch --flake /etc/nixos/.#jimbo@JimDesktop;
notify-send "NixOS switch finished."
'';
sysdate = "${auth.method} nixos-rebuild switch --flake /etc/nixos/.#JimDesktop";
homedate = "home-manager switch --flake /etc/nixos/.#jimbo@JimDesktop";
nixdate = "sysdate; homedate; notify-send 'NixOS switch done.'";
};
};

View file

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

View file

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