Just make auto-rebuild passwordless for the cluster-admin

This commit is contained in:
2025-12-07 20:54:39 -08:00
parent a8e001ebb1
commit 7611e586c8
2 changed files with 11 additions and 4 deletions

View File

@@ -22,6 +22,5 @@
usbutils
util-linux
wget
firefox
];
}

View File

@@ -14,12 +14,17 @@
command = "${pkgs.systemd}/bin/poweroff";
options = [ "NOPASSWD" ];
}
];
}
{
command = "${pkgs.systemd}/bin/systemctl start git-auto-rebuild";
users = [ "cluster-admin" ];
commands = [
{
command = "${pkgs.systemd}/bin/systemctl start git-auto-rebuild.service";
options = [ "NOPASSWD" ];
}
{
command = "${pkgs.systemd}/bin/systemctl stop git-auto-rebuild";
command = "${pkgs.systemd}/bin/systemctl stop git-auto-rebuild.service";
options = [ "NOPASSWD" ];
}
@@ -30,7 +35,10 @@
commands = [
{
command = "${pkgs.nvtopPackages.full}/bin/nvtop";
options = [ "NOPASSWD" "SETENV" ];
options = [
"NOPASSWD"
"SETENV"
];
}
];