From 197e13306d9c76327bf9726ea22c8fdfa73c1896 Mon Sep 17 00:00:00 2001 From: clerie Date: Sun, 16 Apr 2023 15:31:07 +0200 Subject: [PATCH] configuration/common: Migrate sshd options --- configuration/common/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/configuration/common/default.nix b/configuration/common/default.nix index e09e65f..253e63c 100644 --- a/configuration/common/default.nix +++ b/configuration/common/default.nix @@ -52,9 +52,11 @@ }; services.openssh.enable = true; - services.openssh.passwordAuthentication = false; - services.openssh.kbdInteractiveAuthentication = false; - services.openssh.permitRootLogin = lib.mkDefault "no"; + services.openssh.settings = { + passwordAuthentication = false; + kbdInteractiveAuthentication = false; + permitRootLogin = lib.mkDefault "no"; + }; nix.gc = lib.mkDefault { automatic = true;