From 5dd2fb403db466d0cd21499fed48ac2c0997b1be Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Wed, 5 Apr 2023 09:24:11 +0200 Subject: [PATCH] Use updated settings names --- modules/system/ssh/default.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/modules/system/ssh/default.nix b/modules/system/ssh/default.nix index 519244d..05c7d97 100644 --- a/modules/system/ssh/default.nix +++ b/modules/system/ssh/default.nix @@ -12,10 +12,12 @@ in config = mkIf cfg.enable { services.openssh = { enable = true; - passwordAuthentication = false; - kbdInteractiveAuthentication = false; - settings.X11forwarding = true; - settings.PermitRootLogin = "yes"; + settings = { + X11forwarding = true; + PermitRootLogin = "yes"; + passwordAuthentication = false; + kbdInteractiveAuthentication = false; + }; }; environment.systemPackages = with pkgs; [ sshfs ]; };