reciproka-ops/profiles/openssh.nix
Fiscal Velvet Poet b08e13c2a0
openssh: upgrade to v9.3p1
progresses #20
2023-06-02 10:00:45 +10:00

24 lines
454 B
Nix

# SSH service configuration common to all hosts
{
config,
pkgs,
lib,
...
}: {
services.openssh = {
enable = true; # Enable the OpenSSH daemon.
openFirewall = true;
hostKeys = [
{
path = "/etc/ssh/ssh_host_ed25519_key";
type = "ed25519";
}
];
settings = {
KbdInteractiveAuthentication = false;
PasswordAuthentication = false;
PermitRootLogin = "prohibit-password";
};
};
}