nix-dotfiles/modules/endlessh.nix

14 lines
316 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) {
2024-04-10 19:01:31 -04:00
enable = lib.mkDefault true;
2024-01-09 16:21:22 +01:00
port = 22;
};
2023-12-29 14:53:19 +01:00
};
2024-04-10 19:06:51 -04:00
networking.firewall = lib.mkIf config.services.endlessh-go.enable { allowedTCPPorts = [ 22 ]; };
2023-12-29 14:53:19 +01:00
};
}