Files
nix-config/modules/firewall.nix
2024-04-03 20:30:00 +02:00

10 lines
248 B
Nix

{ config, pkgs, lib, inputs, vars, ... }:
let
allowedUDPPortRanges = vars.udpRanges;
in
{
networking.firewall.enable = true;
networking.firewall.allowedUDPPorts = [ 5000 ];
networking.firewall.allowedUDPPortRanges = allowedUDPPortRanges;
}