snowflake/modules/openssh.nix
2023-04-26 19:26:28 -04:00

19 lines
378 B
Nix

{...}: {
services.openssh = {
enable = true;
settings = {
PasswordAuthentication = false;
PubkeyAuthentication = true;
PermitRootLogin = "yes";
StreamLocalBindUnlink = "yes";
GatewayPorts = "clientspecified";
};
hostKeys = [
{
path = "/etc/ssh/ssh_host_ed25519_key";
type = "ed25519";
}
];
};
}