mirror of
https://github.com/caperren/nixos-configs.git
synced 2025-12-30 19:14:19 +00:00
Use system path config for sudoers changes
This commit is contained in:
@@ -7,11 +7,11 @@
|
||||
groups = [ "wheel" ];
|
||||
commands = [
|
||||
{
|
||||
command = "${pkgs.systemd}/bin/reboot";
|
||||
command = "${config.system.path}/bin/reboot";
|
||||
options = [ "NOPASSWD" ];
|
||||
}
|
||||
{
|
||||
command = "${pkgs.systemd}/bin/poweroff";
|
||||
command = "${config.system.path}/bin/poweroff";
|
||||
options = [ "NOPASSWD" ];
|
||||
}
|
||||
];
|
||||
@@ -20,11 +20,11 @@
|
||||
users = [ "cluster-admin" ];
|
||||
commands = [
|
||||
{
|
||||
command = "${pkgs.systemd}/bin/systemctl start git-auto-rebuild.service";
|
||||
command = "${config.system.path}/bin/systemctl start git-auto-rebuild.service";
|
||||
options = [ "NOPASSWD" ];
|
||||
}
|
||||
{
|
||||
command = "${pkgs.systemd}/bin/systemctl stop git-auto-rebuild.service";
|
||||
command = "${config.system.path}/bin/systemctl stop git-auto-rebuild.service";
|
||||
options = [ "NOPASSWD" ];
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
users = [ "caperren" ];
|
||||
commands = [
|
||||
{
|
||||
command = "${pkgs.nvtopPackages.full}/bin/nvtop";
|
||||
command = "${config.system.path}/bin/nvtop";
|
||||
options = [
|
||||
"NOPASSWD"
|
||||
"SETENV"
|
||||
|
||||
Reference in New Issue
Block a user