mirror of
https://github.com/tomasriveral/nixos.git
synced 2026-08-12 02:28:37 +02:00
sudo: set default pwfeedback
This commit is contained in:
+24
-19
@@ -27,24 +27,29 @@ _: {
|
|||||||
services.upower.enable = true;
|
services.upower.enable = true;
|
||||||
|
|
||||||
# removes need for password for nixos-rebuild
|
# removes need for password for nixos-rebuild
|
||||||
security.sudo.extraRules = [
|
security.sudo = {
|
||||||
{
|
extraRules = [
|
||||||
users = ["tomasr"];
|
{
|
||||||
commands = [
|
users = ["tomasr"];
|
||||||
{
|
commands = [
|
||||||
command = "/run/current-system/sw/bin/nixos-rebuild";
|
{
|
||||||
options = ["NOPASSWD"];
|
command = "/run/current-system/sw/bin/nixos-rebuild";
|
||||||
}
|
options = ["NOPASSWD"];
|
||||||
{
|
}
|
||||||
command = "${pkgs.nixos-rebuild}/bin/nixos-rebuild";
|
{
|
||||||
options = ["NOPASSWD"];
|
command = "${pkgs.nixos-rebuild}/bin/nixos-rebuild";
|
||||||
}
|
options = ["NOPASSWD"];
|
||||||
{
|
}
|
||||||
command = "${pkgs-unstable.nixos-rebuild}/bin/nixos-rebuild";
|
{
|
||||||
options = ["NOPASSWD"];
|
command = "${pkgs-unstable.nixos-rebuild}/bin/nixos-rebuild";
|
||||||
}
|
options = ["NOPASSWD"];
|
||||||
];
|
}
|
||||||
}
|
];
|
||||||
];
|
}
|
||||||
|
];
|
||||||
|
extraConfig = ''
|
||||||
|
Default pwfeedback
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user