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>
This commit is contained in:
Richie Cahill
2024-04-06 19:02:32 -04:00
committed by GitHub
parent e5daa66460
commit 1567d5f296
2 changed files with 0 additions and 36 deletions

15
modules/endlessh.nix Normal file
View File

@ -0,0 +1,15 @@
{ 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 ];
};
};
}