Update the nixdate command to actually update the system/flake
This commit is contained in:
parent
5aff442e3b
commit
0697bd88d4
5 changed files with 37 additions and 33 deletions
|
@ -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.'";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue