mirror of
https://github.com/thiloho/nixos-config.git
synced 2025-11-22 11:31:36 +01:00
Change remote execution for rebuild command
This commit is contained in:
@@ -229,9 +229,17 @@
|
|||||||
acceptTerms = true;
|
acceptTerms = true;
|
||||||
defaults.email = "thilo.hohlt@tutanota.com";
|
defaults.email = "thilo.hohlt@tutanota.com";
|
||||||
};
|
};
|
||||||
sudo.extraConfig = ''
|
sudo.extraRules = [
|
||||||
%wheel ALL=(ALL) NOPASSWD: ALL, SETENV: ALL
|
{
|
||||||
'';
|
users = [ "thiloho" ];
|
||||||
|
commands = [
|
||||||
|
{
|
||||||
|
command = "${pkgs.nixos-rebuild}/bin/nixos-rebuild";
|
||||||
|
options = [ "NOPASSWD" ];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.services = {
|
systemd.services = {
|
||||||
|
|||||||
Reference in New Issue
Block a user