nix-dotfiles/modules/endlessh.nix

16 lines
341 B
Nix
Raw Normal View History

{ config, lib, ... }:
{
2023-12-29 14:53:19 +01:00
config = {
2024-01-09 16:21:22 +01:00
services = {
endlessh-go = lib.mkIf (!builtins.elem 22 config.services.openssh.ports) {
enable = true;
port = 22;
};
2023-12-29 14:53:19 +01:00
};
networking.firewall = lib.mkIf config.services.openssh.enable {
allowedTCPPorts = config.services.openssh.ports ++ [ 22 ];
};
2023-12-29 14:53:19 +01:00
};
}