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:
15
modules/endlessh.nix
Normal file
15
modules/endlessh.nix
Normal 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 ];
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user