ooknet/nixos/modules/gaming/openPorts.nix
2024-06-11 22:37:17 +12:00

22 lines
310 B
Nix

{ lib, config, ... }:
let
inherit (lib) mkIf;
cfg = config.ooknet.gaming.openPorts;
in
{
config = mkIf cfg.enable {
networking.firewall = {
allowedTCPPorts = [ 3074 ];
allowedUDPPorts = [
88
500
3074
2075
3544
4500
];
};
};
}