nixfiles/profiles/sshd/sshd.nix
2023-02-09 16:20:45 +00:00

14 lines
348 B
Nix

{lib, ...}: {
services.openssh = {
enable = true;
settings = {
PermitRootLogin = "prohibit-password";
PasswordAuthentication = false;
KbdInteractiveAuthentication = lib.mkDefault false;
StreamLocalBindUnlink = true;
KexAlgorithms = ["curve25519-sha256@libssh.org"];
LogLevel = "VERBOSE";
};
};
}