swann: install Unifi controller

This commit is contained in:
Luke Granger-Brown 2020-11-04 21:53:14 +00:00
parent a507a5380d
commit 82c751a6e4

View file

@ -114,6 +114,23 @@ in {
tc filter add dev ens-virginmedia parent ffff: matchall action mirred egress redirect dev ifb-virginmedia
'';
services.unifi = {
enable = true;
openPorts = false;
unifiPackage = pkgs.unifiBeta;
};
networking.firewall = {
interfaces.ens-general = {
allowedTCPPorts = [
8080 6789 # Unifi
];
allowedUDPPorts = [
3478 10001 # Unifi
];
};
};
environment.systemPackages = with pkgs; [];
system.stateVersion = "21.03";