Update the nixdate command to actually update the system/flake

This commit is contained in:
Jimbo 2024-09-09 01:06:30 -04:00
parent 5aff442e3b
commit 0697bd88d4
5 changed files with 37 additions and 33 deletions

View file

@ -45,9 +45,10 @@
auth = import ./common/auth.nix;
hostname = "JimDesktop";
in {
sysdate = "${auth.method} nixos-rebuild switch --flake /etc/nixos/.#${hostname}";
homedate = "home-manager switch --flake /etc/nixos/.#jimbo@${hostname}";
nixdate = "sysdate; homedate; notify-send 'NixOS switch done.'";
flakedate = "${auth.method} nix flake update /etc/nixos";
sysswitch = "${auth.method} nixos-rebuild switch --flake /etc/nixos/.#${hostname}";
homeswitch = "home-manager switch --flake /etc/nixos/.#jimbo@${hostname}";
nixdate = "flakedate; sysswitch; homeswitch; notify-send 'NixOS switch done.'";
};
};