17 lines
357 B
Nix
17 lines
357 B
Nix
{ config, pkgs, ... }:
|
|
|
|
let
|
|
inherit (config.networking) ports;
|
|
interfaces = import ../interfaces.nix;
|
|
in
|
|
{
|
|
services.unifi = {
|
|
enable = true;
|
|
unifiPackage = pkgs.unifi;
|
|
mongodbPackage = pkgs.mongodb-7_0;
|
|
};
|
|
networking.firewall.interfaces."${interfaces.lan}".allowedTCPPorts = [
|
|
ports.unifi-http.tcp
|
|
ports.unifi-https.tcp
|
|
];
|
|
}
|