* removing fail2ban jails * removed gitea seting and renamed security.nix to endlessh.nix * fixed formating --------- Co-authored-by: Your Name <you@example.com>
16 lines
341 B
Nix
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 ];
|
|
};
|
|
};
|
|
}
|