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
|
usbutils
|
||||||
util-linux
|
util-linux
|
||||||
wget
|
wget
|
||||||
firefox
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,12 +14,17 @@
|
|||||||
command = "${pkgs.systemd}/bin/poweroff";
|
command = "${pkgs.systemd}/bin/poweroff";
|
||||||
options = [ "NOPASSWD" ];
|
options = [ "NOPASSWD" ];
|
||||||
}
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
{
|
||||||
|
users = [ "cluster-admin" ];
|
||||||
|
commands = [
|
||||||
{
|
{
|
||||||
command = "${pkgs.systemd}/bin/systemctl start git-auto-rebuild";
|
command = "${pkgs.systemd}/bin/systemctl start git-auto-rebuild.service";
|
||||||
options = [ "NOPASSWD" ];
|
options = [ "NOPASSWD" ];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
command = "${pkgs.systemd}/bin/systemctl stop git-auto-rebuild";
|
command = "${pkgs.systemd}/bin/systemctl stop git-auto-rebuild.service";
|
||||||
options = [ "NOPASSWD" ];
|
options = [ "NOPASSWD" ];
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -30,7 +35,10 @@
|
|||||||
commands = [
|
commands = [
|
||||||
{
|
{
|
||||||
command = "${pkgs.nvtopPackages.full}/bin/nvtop";
|
command = "${pkgs.nvtopPackages.full}/bin/nvtop";
|
||||||
options = [ "NOPASSWD" "SETENV" ];
|
options = [
|
||||||
|
"NOPASSWD"
|
||||||
|
"SETENV"
|
||||||
|
];
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user