mirror of
https://github.com/srid/nixos-config.git
synced 2026-05-11 17:36:07 +08:00
sudo: require password
This commit is contained in:
parent
ca169cb782
commit
8b1202be2b
1 changed files with 0 additions and 5 deletions
|
|
@ -8,9 +8,6 @@
|
|||
me = flake.config.me;
|
||||
myKeys = [
|
||||
me.sshKey
|
||||
# vixen host key (see distributed-build.nix)
|
||||
# TODO: This should be added to 'pureintent' only
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIImY2zbqe3HlPF62gSgUrJI7xY3n3NEBwRi/MkDrVjp5"
|
||||
];
|
||||
in
|
||||
{
|
||||
|
|
@ -26,9 +23,7 @@
|
|||
|
||||
programs.zsh.enable = lib.mkIf pkgs.stdenv.isLinux true;
|
||||
|
||||
# Make me a sudoer without password
|
||||
security = lib.optionalAttrs pkgs.stdenv.isLinux {
|
||||
sudo.execWheelOnly = true;
|
||||
sudo.wheelNeedsPassword = false;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue