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;