From 4e6575e4136d7d3cbf26b27919634d239581587c Mon Sep 17 00:00:00 2001 From: Sean Buckley Date: Wed, 20 Jan 2021 11:06:57 -0500 Subject: [PATCH] allow GC without password --- modules/baseline.nix | 1 + 1 file changed, 1 insertion(+) 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"; }