19 lines
367 B
Nix
19 lines
367 B
Nix
{ ... }: {
|
|
services.openssh = {
|
|
enable = true;
|
|
ports = [ 222 ];
|
|
settings = {
|
|
PasswordAuthentication = false;
|
|
};
|
|
};
|
|
|
|
environment.persistence."/nix/persist" = {
|
|
files = [
|
|
"/etc/ssh/ssh_host_ed25519_key"
|
|
"/etc/ssh/ssh_host_ed25519_key.pub"
|
|
"/etc/ssh/ssh_host_rsa_key"
|
|
"/etc/ssh/ssh_host_rsa_key.pub"
|
|
];
|
|
};
|
|
}
|