dotfiles/.config/nixos/shared/firewall.nix
Andrei Jiroh Halili 18b7c4e226 chore(nixos): update configurations and add README
Also set wakatime project name for @hackclub High Seas and
for coding stats

Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.dev>
2024-12-29 22:16:59 +08:00

27 lines
No EOL
486 B
Nix

{ config, pkgs, lib, ... }:
{
# Open ports in the firewall.
networking.firewall.allowedTCPPortRanges = [
{ from = 1714; to = 1764; }
];
networking.firewall.allowedUDPPortRanges = [
{ from = 1714; to = 1764; }
];
networking.firewall.allowedTCPPorts = [
22
80
443
3000
8000
];
networking.firewall.allowedUDPPorts = [
22
80
443
3000
8000
];
# Or disable the firewall altogether.
# networking.firewall.enable = false;
}