os/hosts/giggles/unifi.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
319 B
Nix
Raw Normal View History

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