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;
defaults.email = "thilo.hohlt@tutanota.com";
};
sudo.extraConfig = ''
%wheel ALL=(ALL) NOPASSWD: ALL, SETENV: ALL
'';
sudo.extraRules = [
{
users = [ "thiloho" ];
commands = [
{
command = "${pkgs.nixos-rebuild}/bin/nixos-rebuild";
options = [ "NOPASSWD" ];
}
];
}
];
};
systemd.services = {