mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +00:00
allow GC without password
This commit is contained in:
parent
8522cffb8e
commit
4e6575e413
1 changed files with 1 additions and 0 deletions
|
@ -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"; }
|
||||
|
|
Loading…
Reference in a new issue