mirror of
https://github.com/caperren/nixos-configs.git
synced 2025-12-30 11:04:19 +00:00
Just make auto-rebuild passwordless for the cluster-admin
This commit is contained in:
@@ -22,6 +22,5 @@
|
||||
usbutils
|
||||
util-linux
|
||||
wget
|
||||
firefox
|
||||
];
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
];
|
||||
}
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user