Fix ‘sudo nixos-rebuild’ asking for password

This commit is contained in:
fruchti 2024-04-27 14:33:05 +02:00
parent 9195d6f6de
commit 958117375a

View file

@ -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" ];
}
];