nix-dotfiles/modules/endlessh.nix
Richie Cahill 1567d5f296
Feature/removing junk (#129)
* removing fail2ban jails

* removed gitea seting and renamed security.nix to endlessh.nix

* fixed formating

---------

Co-authored-by: Your Name <you@example.com>
2024-04-06 19:02:32 -04:00

16 lines
341 B
Nix

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