Authenticate sudo before running the rebuild command

This commit is contained in:
SebastianStork 2024-03-27 18:29:44 +01:00
parent 393afa7c2c
commit 8506e3b7ff

View file

@ -41,7 +41,7 @@ in {
};
home.shellAliases = lib.mkIf cfg.nixAliases.enable {
nr = "nixos-rebuild --flake $FLAKE --use-remote-sudo";
nr = "sudo -v && nixos-rebuild --flake $FLAKE --use-remote-sudo";
nrs = "nr switch";
nrt = "nr test";
nrb = "nr boot";