19 lines
290 B
Nix
19 lines
290 B
Nix
{
|
|
config,
|
|
lib,
|
|
myData,
|
|
...
|
|
}: {
|
|
config = {
|
|
services.openssh = {
|
|
enable = true;
|
|
settings = {
|
|
PasswordAuthentication = false;
|
|
PermitRootLogin = "no";
|
|
};
|
|
};
|
|
programs.mosh.enable = true;
|
|
programs.ssh.knownHosts = myData.hosts;
|
|
};
|
|
}
|