nixos-rebuild sudoers

This commit is contained in:
Zynh Ludwig 2024-06-28 19:04:10 -07:00
parent 13c0a48a80
commit 6e07261ae1

View file

@ -112,6 +112,16 @@
user = "ravenshade"; user = "ravenshade";
}; };
security.sudo.extraRules = [
{
users = [ "ravenshade" ];
commands = [{
command = "${pkgs.nixos-rebuild}/bin/nixos-rebuild";
options = [ "SETENV" "NOPASSWD" ];
}];
}
];
home-manager = { home-manager = {
extraSpecialArgs = { inherit inputs; }; extraSpecialArgs = { inherit inputs; };
users = { "ravenshade" = import ./home.nix; }; users = { "ravenshade" = import ./home.nix; };