dotfiles/hosts/_common/components/ssh.nix
RingOfStorms (Josh) 53e98beb2b updates
2024-08-05 15:29:00 -05:00

21 lines
334 B
Nix

{ ... }:
{
# Use fail2ban
services.fail2ban = {
enable = true;
};
# Open ports in the firewall.
networking.firewall.allowedTCPPorts = [
22 # sshd
];
# Enable the OpenSSH daemon.
services.openssh = {
enable = true;
settings = {
LogLevel = "VERBOSE";
PermitRootLogin = "yes";
};
};
}