blob: f8c899a479a5792739b3c9150ad5e82ccd4db4ed (
plain) (
tree)
|
|
{ lib, ... }:
{
services.openssh = {
enable = lib.mkDefault true;
settings = {
PasswordAuthentication = lib.mkForce false;
KbdInteractiveAuthentication = lib.mkForce false;
PermitRootLogin = lib.mkForce "prohibit-password";
};
openFirewall = lib.mkDefault true;
hostKeys = [
{
path = "/etc/ssh/ssh_host_ed25519_key";
type = "ed25519";
}
];
};
}
|