Change remote execution for rebuild command

This commit is contained in:
thiloho
2024-01-04 18:02:47 +01:00
parent 95c9091299
commit bef60ff74c

View File

@@ -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 = {