19 lines
343 B
Nix
19 lines
343 B
Nix
|
{...}: {
|
||
|
services.openssh = {
|
||
|
enable = true;
|
||
|
settings = {
|
||
|
PasswordAuthentication = false;
|
||
|
PermitRootLogin = "yes";
|
||
|
StreamLocalBindUnlink = "yes";
|
||
|
GatewayPorts = "clientspecified";
|
||
|
};
|
||
|
|
||
|
hostKeys = [
|
||
|
{
|
||
|
path = "/etc/ssh/ssh_host_ed25519_key";
|
||
|
type = "ed25519";
|
||
|
}
|
||
|
];
|
||
|
};
|
||
|
}
|