From 1fa619b95f8c69fc2eddf643cfacfaed2336098f Mon Sep 17 00:00:00 2001 From: Corwin Perren Date: Sun, 7 Dec 2025 21:09:20 -0800 Subject: [PATCH] Revert to using system config path --- modules/system/security.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/system/security.nix b/modules/system/security.nix index 8597f47..4dbec27 100644 --- a/modules/system/security.nix +++ b/modules/system/security.nix @@ -7,11 +7,11 @@ groups = [ "wheel" ]; commands = [ { - command = "/run/current-system/sw/bin/reboot"; + command = "${config.system.path}/bin/reboot"; options = [ "NOPASSWD" ]; } { - command = "/run/current-system/sw/bin/poweroff"; + command = "${config.system.path}/bin/poweroff"; options = [ "NOPASSWD" ]; } ]; @@ -20,11 +20,11 @@ users = [ "cluster-admin" ]; commands = [ { - command = "/run/current-system/sw/bin/systemctl start git-auto-rebuild.service"; + command = "${config.system.path}/bin/systemctl start git-auto-rebuild.service"; options = [ "NOPASSWD" ]; } { - command = "/run/current-system/sw/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 = "/run/current-system/sw/bin/nvtop"; + command = "${config.system.path}/bin/nvtop"; options = [ "NOPASSWD" "SETENV"