config/modules/base/sshd/default.nix

19 lines
292 B
Nix
Raw Normal View History

2023-04-14 14:12:45 +03:00
{
config,
lib,
myData,
...
}: {
config = {
services.openssh = {
enable = true;
settings = {
PasswordAuthentication = false;
PermitRootLogin = "no";
};
};
programs.mosh.enable = true;
programs.ssh.knownHosts = myData.systems;
};
}