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

15 lines
230 B
Nix
Raw Normal View History

2024-10-09 03:36:08 -04:00
{ ... }:
{
imports = [ ./fail2ban ];
services.openssh = {
enable = true;
settings = {
PermitRootLogin = "no";
PrintLastLog = "no";
PasswordAuthentication = false;
UsePAM = false;
};
};
}