Allow nixos-rebuild without password for wheel

This commit is contained in:
fruchti 2023-03-11 10:28:59 +01:00
parent 9b546da27d
commit 5f17decfe8

View file

@ -16,4 +16,16 @@ in
members = [ "fruchti" ]; members = [ "fruchti" ];
}; };
}; };
security.sudo.extraRules = [
{
groups = [ "wheel" ];
commands = [
{
command = "${pkgs.nixos-rebuild}/bin/nixos-rebuild *";
options = [ "NOPASSWD" ];
}
];
}
];
} }