From 8c3888b710c6621fd2f3fb2a586fd6f4d0b6fce8 Mon Sep 17 00:00:00 2001 From: smayzy Date: Fri, 10 Oct 2025 12:08:43 +0200 Subject: [PATCH] add openssh --- configuration.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/configuration.nix b/configuration.nix index 4eb6dbb..5e59cd7 100644 --- a/configuration.nix +++ b/configuration.nix @@ -86,6 +86,18 @@ programs.zsh.enable = true; users.defaultUserShell = pkgs.zsh; + services.openssh = { + enable = true; + ports = [ 22 ]; + settings = { + PasswordAuthentication = true; + AllowUsers = null; + UseDns = true; + X11Forwarding = false; + PermitRootLogin = "prohibit-password"; + }; + }; + system.stateVersion = "25.05"; }