21 lines
449 B
Nix
21 lines
449 B
Nix
_: {
|
|
services.openssh = {
|
|
enable = true;
|
|
settings = {
|
|
PasswordAuthentication = false;
|
|
KbdInteractiveAuthentication = false;
|
|
PermitRootLogin = "no";
|
|
};
|
|
hostKeys = [
|
|
{
|
|
path = "/persist/system/etc/ssh/keys/ssh_host_ed25519_key";
|
|
type = "ed25519";
|
|
}
|
|
{
|
|
path = "/persist/system/etc/ssh/keys/ssh_host_rsa_key";
|
|
type = "rsa";
|
|
bits = "4096";
|
|
}
|
|
];
|
|
};
|
|
}
|