diff --git a/modules/baseline.nix b/modules/baseline.nix index d74fc24..a2c4cc2 100644 --- a/modules/baseline.nix +++ b/modules/baseline.nix @@ -47,6 +47,7 @@ security.sudo.extraRules = [{ groups = [ "wheel" ]; commands = [ + { options = [ "NOPASSWD" ]; command = "/run/current-system/sw/bin/nix-collect-garbage -d"; } { options = [ "NOPASSWD" ]; command = "/run/current-system/sw/bin/nix-channel --update"; } { options = [ "NOPASSWD" ]; command = "/run/current-system/sw/bin/nixos-rebuild switch"; } { options = [ "NOPASSWD" ]; command = "/run/current-system/sw/bin/nixos-rebuild switch --upgrade"; }