From d43a2e51b5da70060fe3940482ee929371ce30d1 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Tue, 30 May 2023 11:35:13 +0200 Subject: [PATCH] ssh: Migrate to 23.05 format --- modules/ssh.nix | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/modules/ssh.nix b/modules/ssh.nix index 47c9f6e..a72ad67 100644 --- a/modules/ssh.nix +++ b/modules/ssh.nix @@ -2,16 +2,11 @@ { services.openssh = { enable = true; - } // (if (lib.versionAtLeast (lib.substring 0 5 lib.version) "23.05") then { - # TODO: Remove with 23.05 settings = { - permitRootLogin = "yes"; - passwordAuthentication = false; + PermitRootLogin = "yes"; + PasswordAuthentication = false; }; - } else { - permitRootLogin = "yes"; - passwordAuthentication = false; - }); + }; users.users.root.openssh.authorizedKeys.keys = config.sbruder.pubkeys.trustedKeys;