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" ]; groups = [ "wheel" ];
commands = [ commands = [
{ {
command = "${config.system.path}/bin/reboot"; command = "/run/current-system/sw/bin/reboot";
options = [ "NOPASSWD" ]; options = [ "NOPASSWD" ];
} }
{ {
command = "${config.system.path}/bin/poweroff"; command = "/run/current-system/sw/bin/poweroff";
options = [ "NOPASSWD" ]; options = [ "NOPASSWD" ];
} }
]; ];
@@ -20,11 +20,11 @@
users = [ "cluster-admin" ]; users = [ "cluster-admin" ];
commands = [ 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" ]; 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" ]; options = [ "NOPASSWD" ];
} }
@@ -34,7 +34,7 @@
users = [ "caperren" ]; users = [ "caperren" ];
commands = [ commands = [
{ {
command = "${config.system.path}/bin/nvtop"; command = "/run/current-system/sw/bin/nvtop";
options = [ options = [
"NOPASSWD" "NOPASSWD"
"SETENV" "SETENV"