nixos-rebuild sudoers

sh-initrd-on-root
Zynh Ludwig 2024-06-28 19:04:10 -07:00
parent 13c0a48a80
commit 6e07261ae1
1 changed files with 10 additions and 0 deletions

View File

@ -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; };