Files
cyper-nix/nixos/roles/unifi.nix

27 lines
428 B
Nix

{ pkgs, ... }:
{
nixpkgs.config.allowUnfree = true;
services.unifi = {
enable = true;
unifiPackage = pkgs.unifi;
mongodbPackage = pkgs.mongodb-7_0;
openFirewall = true; # opens 3478/udp, 10001/udp, 8080, 8443, 8843, 8880, 6789
};
networking.firewall = {
allowedTCPPorts = [
8443
8080
8880
8843
6789
];
allowedUDPPorts = [
3478
10001
];
};
}