Nixos-Configuration/modules/nixos/common/ssh.nix
2025-07-01 21:18:14 -04:00

18 lines
334 B
Nix

{ lib, config, ... }:
{
config = {
services.openssh = {
enable = true;
settings.PasswordAuthentication = false;
startWhenNeeded = true;
};
security = {
sudo.execWheelOnly = true;
pam = {
sshAgentAuth.enable = true;
services.sudo.sshAgentAuth = true;
};
};
};
}