nixos-server-conf/shared/ssh.nix

18 lines
328 B
Nix
Raw Normal View History

{ config, lib, pkgs, modulesPath, ... }:
{
services = {
2025-05-20 12:36:04 +00:00
endlessh = {
enable = true;
port = 22;
};
2025-05-20 12:36:04 +00:00
openssh = {
enable = true;
ports = [ 54222 ];
2025-05-20 12:36:04 +00:00
settings = {
2025-05-22 07:44:23 +00:00
AllowUsers = [ "dev" "root" ];
2025-05-20 12:36:04 +00:00
};
};
};
2025-05-22 07:44:23 +00:00
}