1
0
Fork 0

Update openssh config to follow renames.

This commit is contained in:
Kevin Baensch 2023-01-29 16:22:24 +01:00
parent 663ee59f82
commit 446abd5231
Signed by: derped
GPG Key ID: C0F1D326C7626543
1 changed files with 5 additions and 3 deletions

View File

@ -12,9 +12,11 @@ mkIf (elem "openssh" config.machine.services) {
kexAlgorithms = [ "curve25519-sha256@libssh.org" ];
sftpFlags = [ "-f AUTHPRIV" "-l INFO" ];
startWhenNeeded = true;
challengeResponseAuthentication = false;
passwordAuthentication = false;
permitRootLogin = "no";
settings = {
KbdInteractiveAuthentication = false;
PasswordAuthentication = false;
PermitRootLogin = "no";
};
extraConfig = let users = concatMapStrings (user: "${user.name} ") config.machine.administrators
+ (optionalString config.services.gitea.enable (config.services.gitea.user + " "));
in ''