allow GC without password

This commit is contained in:
Sean Buckley 2021-01-20 11:06:57 -05:00
parent 8522cffb8e
commit 4e6575e413

View file

@ -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"; }