Try current system path instead

This commit is contained in:
2025-12-07 21:04:33 -08:00
parent df2327bfc0
commit 0bfc3792be

View File

@@ -7,11 +7,11 @@
groups = [ "wheel" ];
commands = [
{
command = "${config.system.path}/bin/reboot";
command = "/run/current-system/sw/bin/reboot";
options = [ "NOPASSWD" ];
}
{
command = "${config.system.path}/bin/poweroff";
command = "/run/current-system/sw/bin/poweroff";
options = [ "NOPASSWD" ];
}
];
@@ -20,11 +20,11 @@
users = [ "cluster-admin" ];
commands = [
{
command = "${config.system.path}/bin/systemctl start git-auto-rebuild.service";
command = "/run/current-system/sw/bin/systemctl start git-auto-rebuild.service";
options = [ "NOPASSWD" ];
}
{
command = "${config.system.path}/bin/systemctl stop git-auto-rebuild.service";
command = "/run/current-system/sw/bin/systemctl stop git-auto-rebuild.service";
options = [ "NOPASSWD" ];
}
@@ -34,7 +34,7 @@
users = [ "caperren" ];
commands = [
{
command = "${config.system.path}/bin/nvtop";
command = "/run/current-system/sw/bin/nvtop";
options = [
"NOPASSWD"
"SETENV"