diff options
author | Jasper Ras <jaspert.ras@gmail.com> | 2024-10-23 08:50:57 +0200 |
---|---|---|
committer | Jasper Ras <jaspert.ras@gmail.com> | 2024-10-23 08:50:57 +0200 |
commit | d9511a642b80c16db6508bc1f4b51f229c257b3a (patch) | |
tree | a9cdf25f7e0f74abc484cb45fce25ea86bf0853a /networking.nix |
Initial commit
Diffstat (limited to 'networking.nix')
-rw-r--r-- | networking.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/networking.nix b/networking.nix new file mode 100644 index 0000000..2eb5ade --- /dev/null +++ b/networking.nix @@ -0,0 +1,28 @@ +{ config, pkgs, ... }: +{ + # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. + # Configure network proxy if necessary + # networking.proxy.default = "http://user:password@proxy:port/"; + # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain"; + + + # Open ports in the firewall. + # networking.firewall.allowedTCPPorts = [ ... ]; + # networking.firewall.allowedUDPPorts = [ ... ]; + # Or disable the firewall altogether. + # networking.firewall.enable = false; + + networking.networkmanager.enable = true; + networking.hostName = "tarrel"; + + services.unifi = { + enable = true; + unifiPackage = pkgs.unifi8; + }; + + # from: https://help.ui.com/hc/en-us/articles/218506997-Required-Ports-Reference + # best put it in a var somewhere + networking.firewall.allowedTCPPorts = [ 53 8080 443 8443 8880 8843 6789 27117 ]; + networking.firewall.allowedUDPPorts = [ 53 3478 5514 10001 1900 123]; + networking.firewall.allowedUDPPortRanges = [ { from = 5656; to = 5699; } ]; +} |