From 8506e3b7ff8feb4a470585cb2fd3d3939ce13ae8 Mon Sep 17 00:00:00 2001 From: SebastianStork Date: Wed, 27 Mar 2024 18:29:44 +0100 Subject: [PATCH] Authenticate sudo before running the rebuild command --- modules/home/shell.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/home/shell.nix b/modules/home/shell.nix index 7d0b846..2219779 100644 --- a/modules/home/shell.nix +++ b/modules/home/shell.nix @@ -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";