mirror of
https://github.com/caperren/nixos-configs.git
synced 2025-12-30 19:14:19 +00:00
Try current system path instead
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user