puter/common/system/features/openssh.nix

17 lines
282 B
Nix
Raw Normal View History

2023-09-17 11:31:20 +00:00
{
services.openssh = {
enable = true;
openFirewall = true;
hostKeys = [
{
path = "/etc/ssh/ssh_host_ed25519_key";
type = "ed25519";
}
];
settings = {
PermitRootLogin = "no";
PasswordAuthentication = false;
};
};
}