nyx/modules/nixos/networking/ssh.nix

28 lines
496 B
Nix
Raw Permalink Normal View History

2025-01-27 14:24:45 +02:00
{...}: {
services.openssh = {
enable = true;
settings = {
PermitRootLogin = "no";
PasswordAuthentication = false;
ClientAliveCountMax = 5;
ClientAliveInterval = 60;
};
openFirewall = true;
ports = [22];
2025-01-27 17:22:01 +02:00
hostKeys = [
{
bits = 4096;
path = "/etc/ssh/ssh_host_rsa_key";
type = "rsa";
}
{
bits = 4096;
path = "/etc/ssh/ssh_host_ed25519_key";
type = "ed25519";
}
];
2025-01-27 14:24:45 +02:00
};
}