ssh: Migrate to 23.05 format
This commit is contained in:
parent
fa6941bfa0
commit
d43a2e51b5
|
@ -2,16 +2,11 @@
|
||||||
{
|
{
|
||||||
services.openssh = {
|
services.openssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
} // (if (lib.versionAtLeast (lib.substring 0 5 lib.version) "23.05") then {
|
|
||||||
# TODO: Remove with 23.05
|
|
||||||
settings = {
|
settings = {
|
||||||
permitRootLogin = "yes";
|
PermitRootLogin = "yes";
|
||||||
passwordAuthentication = false;
|
PasswordAuthentication = false;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
} else {
|
|
||||||
permitRootLogin = "yes";
|
|
||||||
passwordAuthentication = false;
|
|
||||||
});
|
|
||||||
|
|
||||||
users.users.root.openssh.authorizedKeys.keys = config.sbruder.pubkeys.trustedKeys;
|
users.users.root.openssh.authorizedKeys.keys = config.sbruder.pubkeys.trustedKeys;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue