{ ... }: { nix = { settings.experimental-features = "nix-command flakes"; gc = { automatic = true; dates = "weekly"; options = "--delete-older-than 14d"; }; optimise.automatic = true; }; networking = { useDHCP = true; firewall.allowedTCPPorts = [ 22 2222 80 443 ]; }; time.timeZone = "Europe/Berlin"; boot.tmp.cleanOnBoot = true; services.journald.extraConfig = "SystemMaxUse=1G"; services = { openssh = { enable = true; ports = [ 2222 ]; settings = { PasswordAuthentication = false; KbdInteractiveAuthentication = false; PermitRootLogin = "prohibit-password"; }; }; fail2ban = { enable = true; maxretry = 5; bantime = "1h"; jails.nginx-botsearch.settings = { enabled = true; backend = "systemd"; filter = "nginx-botsearch"; maxretry = 3; }; }; }; }