From 6b4c01a2428a9427bd76e36bbba9b869cfc37890 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sat, 28 Jan 2023 22:49:57 +0100 Subject: [PATCH] modules: services: ssh-server: use 'settings' --- modules/services/ssh-server/default.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/modules/services/ssh-server/default.nix b/modules/services/ssh-server/default.nix index a41a673..9ae0fa8 100644 --- a/modules/services/ssh-server/default.nix +++ b/modules/services/ssh-server/default.nix @@ -12,9 +12,12 @@ in services.openssh = { # Enable the OpenSSH daemon. enable = true; - # Be more secure - permitRootLogin = "no"; - passwordAuthentication = false; + + settings = { + # Be more secure + PermitRootLogin = "no"; + PasswordAuthentication = false; + }; }; # Opens the relevant UDP ports.