forked from nico/dots
19 lines
370 B
Nix
19 lines
370 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
# Enable the OpenSSH daemon.
|
|
services.openssh = {
|
|
enable = true;
|
|
allowSFTP = true;
|
|
openFirewall = true;
|
|
authorizedKeysInHomedir = false;
|
|
settings = {
|
|
PermitRootLogin = "no";
|
|
PasswordAuthentication = false;
|
|
GatewayPorts = "no";
|
|
};
|
|
};
|
|
|
|
# enable fail2ban
|
|
services.fail2ban.enable = true;
|
|
}
|