nix-dotfiles/modules/endlessh.nix
2024-04-10 19:11:09 -04:00

14 lines
316 B
Nix

{ config, lib, ... }:
{
config = {
services = {
endlessh-go = lib.mkIf (!builtins.elem 22 config.services.openssh.ports) {
enable = lib.mkDefault true;
port = 22;
};
};
networking.firewall = lib.mkIf config.services.endlessh-go.enable { allowedTCPPorts = [ 22 ]; };
};
}