Allow nixos-rebuild without password for wheel
This commit is contained in:
parent
9b546da27d
commit
5f17decfe8
|
@ -16,4 +16,16 @@ in
|
|||
members = [ "fruchti" ];
|
||||
};
|
||||
};
|
||||
|
||||
security.sudo.extraRules = [
|
||||
{
|
||||
groups = [ "wheel" ];
|
||||
commands = [
|
||||
{
|
||||
command = "${pkgs.nixos-rebuild}/bin/nixos-rebuild *";
|
||||
options = [ "NOPASSWD" ];
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue