nixos-server-conf/shared/ssh.nix

17 lines
317 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 = [ 23 ];
settings = {
AllowUsers = [ "dev" ];
};
};
};
}