From b97209171ce216d3f31ed42856c5d5d95c808025 Mon Sep 17 00:00:00 2001 From: Jakub Stachurski Date: Thu, 8 May 2025 23:29:41 +0200 Subject: openssh and firewall changes --- nixos/hosts/apocalypse/default.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'nixos/hosts/apocalypse/default.nix') diff --git a/nixos/hosts/apocalypse/default.nix b/nixos/hosts/apocalypse/default.nix index a84d07d..a6e6233 100644 --- a/nixos/hosts/apocalypse/default.nix +++ b/nixos/hosts/apocalypse/default.nix @@ -69,6 +69,20 @@ # Firmware updates services.fwupd.enable = true; + + services.openssh = { + enable = true; + ports = [22]; + openFirewall = false; + allowSFTP = false; + settings = { + PasswordAuthentication = false; + AllowUsers = ["wilkuu"]; + X11Forwarding = false; + PermitRootLogin = "no"; + PrintMotd = true; + }; + }; } -- cgit v1.3.1