global/security: replace ssh agent auth with passwordless sudo
This commit is contained in:
parent
001068b1f0
commit
180bcfa3ff
1 changed files with 1 additions and 5 deletions
|
@ -3,6 +3,7 @@ with lib;
|
||||||
{
|
{
|
||||||
# Security settings based on https://github.com/hlissner/dotfiles/blob/master/modules/security.nix
|
# Security settings based on https://github.com/hlissner/dotfiles/blob/master/modules/security.nix
|
||||||
security = {
|
security = {
|
||||||
|
sudo.wheelNeedsPassword = false;
|
||||||
sudo.extraConfig = ''
|
sudo.extraConfig = ''
|
||||||
Defaults lecture=never
|
Defaults lecture=never
|
||||||
'';
|
'';
|
||||||
|
@ -14,11 +15,6 @@ with lib;
|
||||||
environmentFile = config.secrets.cloudflare;
|
environmentFile = config.secrets.cloudflare;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
pam.sshAgentAuth = {
|
|
||||||
enable = true;
|
|
||||||
authorizedKeysFiles = lib.mkForce [ "/etc/ssh/authorized_keys.d/%u" ];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
hardware = {
|
hardware = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue