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

16 lines
236 B
Nix
Raw Normal View History

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