From 958117375a72a8f71ae202701218461de9868cee Mon Sep 17 00:00:00 2001 From: fruchti Date: Sat, 27 Apr 2024 14:33:05 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20=E2=80=98sudo=20nixos-rebuild=E2=80=99=20?= =?UTF-8?q?asking=20for=20password?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- base/users.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/users.nix b/base/users.nix index 298c65c..e6f84cb 100644 --- a/base/users.nix +++ b/base/users.nix @@ -24,7 +24,7 @@ in groups = [ "wheel" ]; commands = [ { - command = "${pkgs.nixos-rebuild}/bin/nixos-rebuild *"; + command = "/run/current-system/sw/bin/nixos-rebuild"; options = [ "NOPASSWD" ]; } ];