Nixos-Configuration/modules/nixos/common/ssh.nix
Jermeiah S bd11de92a8
All checks were successful
/ check (push) Successful in 2m10s
/ deploy (push) Has been skipped
feat remove password auth on ssh
2025-07-01 20:50:55 -04:00

17 lines
304 B
Nix

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