2023-11-11 00:06:36 +00:00
|
|
|
{ pkgs, lib, ...}:
|
2023-10-01 20:23:58 +00:00
|
|
|
|
|
|
|
{
|
2023-11-11 00:06:36 +00:00
|
|
|
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ "mongodb" "unifi-controller" ];
|
|
|
|
|
2023-10-01 20:23:58 +00:00
|
|
|
networking.firewall.allowedTCPPorts = [8443]; # open unifi web interface port
|
|
|
|
|
|
|
|
services.unifi = {
|
|
|
|
enable = true;
|
|
|
|
unifiPackage = pkgs.unifi7;
|
|
|
|
openFirewall = true;
|
|
|
|
};
|
|
|
|
}
|