From 16f9d31eb625195c5273d86ff6660abe5fac3f58 Mon Sep 17 00:00:00 2001 From: Alexander Kassouni Date: Sat, 26 Sep 2026 23:20:05 -0700 Subject: move ssh port --- configuration.nix | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'configuration.nix') diff --git a/configuration.nix b/configuration.nix index dfdbb64..137e2f4 100644 --- a/configuration.nix +++ b/configuration.nix @@ -4,26 +4,13 @@ ./minecraft.nix ./options.nix ./git.nix + ./ssh.nix ]; boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; networking.networkmanager.enable = true; - services.fail2ban.enable = true; - - services.openssh = { - enable = true; - authorizedKeysInHomedir = false; # trust only /etc/ssh/authorized_keys.d/%u - settings = { - PasswordAuthentication = false; - PermitRootLogin = "no"; - AllowUsers = [ "kassouni" "git" ]; - KbdInteractiveAuthentication = false; - PubkeyAuthentication = true; - }; - }; - users.users.kassouni = { extraGroups = [ "wheel" ]; isNormalUser = true; -- cgit v1.3.1