NixOS-Config/modules/system/services/common/ssh/default.nix

17 lines
236 B
Nix

{ ... }:
{
imports = [
./fail2ban
];
services.openssh = {
enable = true;
settings = {
PermitRootLogin = "no";
PrintLastLog = "no";
PasswordAuthentication = false;
UsePAM = false;
};
};
}