nixos-server-conf/shared/ssh.nix
2025-06-12 18:04:45 +02:00

26 lines
302 B
Nix

{
config,
lib,
pkgs,
modulesPath,
...
}:
{
services = {
endlessh = {
enable = true;
port = 22;
};
openssh = {
enable = true;
ports = [ 54222 ];
settings = {
AllowUsers = [
"dev"
"root"
];
};
};
};
}