From 290e9d83d227b625a08b7263b1d68d36f9ceda59 Mon Sep 17 00:00:00 2001 From: Dict Xiong Date: Mon, 24 Jun 2024 15:42:39 +0800 Subject: [PATCH] feat: sudo poweroff --- hosts/modules/nasp.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hosts/modules/nasp.nix b/hosts/modules/nasp.nix index f54e8aa..a853aa9 100644 --- a/hosts/modules/nasp.nix +++ b/hosts/modules/nasp.nix @@ -243,10 +243,11 @@ in }; security.sudo.extraConfig = '' %nasp ALL = (root) NOPASSWD: /run/current-system/sw/bin/docker - %nasp ALL = (root) NOPASSWD: /run/current-system/sw/bin/reboot %nasp ALL = (root) NOPASSWD: /run/current-system/sw/bin/whoami %nasp ALL = (root) NOPASSWD: /run/current-system/sw/bin/nvidia-smi %nasp ALL = (root) NOPASSWD: /run/current-system/sw/bin/shutdown + %nasp ALL = (root) NOPASSWD: /run/current-system/sw/bin/poweroff + %nasp ALL = (root) NOPASSWD: /run/current-system/sw/bin/reboot %nasp ALL = (root) NOPASSWD: /run/current-system/sw/bin/ip ''; })