From dbcc0a096ad496bbc6196b2b40664ffcaf9f3eed Mon Sep 17 00:00:00 2001 From: Hadi <112569860+anotherhadi@users.noreply.github.com> Date: Tue, 18 Mar 2025 23:36:54 +0100 Subject: [PATCH] update --- server-modules/ssh.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/server-modules/ssh.nix b/server-modules/ssh.nix index c9f97a4..9a218e4 100644 --- a/server-modules/ssh.nix +++ b/server-modules/ssh.nix @@ -1,11 +1,13 @@ { config, ... }: { services.openssh = { enable = true; - permitRootLogin = "no"; - passwordAuthentication = false; - openFirewall = true; ports = [ 22 ]; - settings.AllowUsers = [ config.var.username ]; + openFirewall = true; + settings = { + PermitRootLogin = "no"; + PasswordAuthentication = false; + AllowUsers = [ config.var.username ]; + }; }; users.users."${config.var.username}" = {