Limit password less sudo to nix-env

This commit is contained in:
Andreas Zweili 2022-11-15 15:20:01 +01:00
parent 02e8449723
commit 146231ccec
1 changed files with 2 additions and 2 deletions

View File

@ -118,8 +118,8 @@
options = [ "NOPASSWD" ]; options = [ "NOPASSWD" ];
} }
{ {
command = "ALL"; command = "/run/current-system/sw/bin/nix-env";
options = [ "SETENV" ]; options = [ "NOPASSWD" ];
} }
]; ];
} }