Fix ‘sudo nixos-rebuild’ asking for password
This commit is contained in:
parent
9195d6f6de
commit
958117375a
|
@ -24,7 +24,7 @@ in
|
||||||
groups = [ "wheel" ];
|
groups = [ "wheel" ];
|
||||||
commands = [
|
commands = [
|
||||||
{
|
{
|
||||||
command = "${pkgs.nixos-rebuild}/bin/nixos-rebuild *";
|
command = "/run/current-system/sw/bin/nixos-rebuild";
|
||||||
options = [ "NOPASSWD" ];
|
options = [ "NOPASSWD" ];
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue