ssh: Migrate to 23.05 format
This commit is contained in:
parent
fa6941bfa0
commit
d43a2e51b5
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue