From 4258b2d21582a8274bbc3a73171fb3b9de621b92 Mon Sep 17 00:00:00 2001 From: Bad Date: Sun, 19 Mar 2023 14:38:34 +0100 Subject: [PATCH] Configure ssh via settings --- profiles/ssh/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/profiles/ssh/default.nix b/profiles/ssh/default.nix index 2302428..dc7831d 100644 --- a/profiles/ssh/default.nix +++ b/profiles/ssh/default.nix @@ -1,10 +1,12 @@ { ... }: { services.openssh = { enable = true; - forwardX11 = true; - permitRootLogin = "no"; + settings = { + X11Forwarding = true; + PermitRootLogin = "no"; + PasswordAuthentication = false; + }; startWhenNeeded = true; openFirewall = true; - passwordAuthentication = false; }; }