From e037e164c5c45ff33525d0c8575e8d9e0315ac7b Mon Sep 17 00:00:00 2001 From: Alexander Kassouni Date: Sun, 27 Sep 2026 22:07:56 -0700 Subject: move nix modules --- nix/ssh.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 nix/ssh.nix (limited to 'nix/ssh.nix') diff --git a/nix/ssh.nix b/nix/ssh.nix new file mode 100644 index 0000000..d58a2a1 --- /dev/null +++ b/nix/ssh.nix @@ -0,0 +1,15 @@ +{...}:{ + services.fail2ban.enable = true; + + services.openssh = { + enable = true; + authorizedKeysInHomedir = false; + settings = { + PasswordAuthentication = false; + PermitRootLogin = "no"; + AllowUsers = [ "kassouni" "git" ]; + KbdInteractiveAuthentication = false; + PubkeyAuthentication = true; + }; + }; +} -- cgit v1.3.1