config/modules/base/sshd/default.nix
2023-07-18 11:27:59 +03:00

19 lines
292 B
Nix

{
config,
lib,
myData,
...
}: {
config = {
services.openssh = {
enable = true;
settings = {
PasswordAuthentication = false;
PermitRootLogin = "no";
};
};
programs.mosh.enable = true;
programs.ssh.knownHosts = myData.systems;
};
}