nixos-rebuild sudoers
This commit is contained in:
parent
13c0a48a80
commit
6e07261ae1
1 changed files with 10 additions and 0 deletions
|
@ -112,6 +112,16 @@
|
|||
user = "ravenshade";
|
||||
};
|
||||
|
||||
security.sudo.extraRules = [
|
||||
{
|
||||
users = [ "ravenshade" ];
|
||||
commands = [{
|
||||
command = "${pkgs.nixos-rebuild}/bin/nixos-rebuild";
|
||||
options = [ "SETENV" "NOPASSWD" ];
|
||||
}];
|
||||
}
|
||||
];
|
||||
|
||||
home-manager = {
|
||||
extraSpecialArgs = { inherit inputs; };
|
||||
users = { "ravenshade" = import ./home.nix; };
|
||||
|
|
Loading…
Reference in a new issue