infrastructure/nixos/hosts/hades/unifi/configuration.nix
2022-09-30 11:57:34 +02:00

21 lines
464 B
Nix

{ config, pkgs, lib, ... }:
{
system.stateVersion = "21.05";
networking.interfaces.eth0.useDHCP = true;
services.unifi = {
enable = true;
jrePackage = pkgs.jre8_headless;
unifiPackage = pkgs.unifi;
mongodbPackage = pkgs.mongodb;
openFirewall = true;
};
# Required for Java
# gets forced to true due the lxc profile
environment.noXlibs = lib.mkForce false;
# Unifi Web Port
networking.firewall.allowedTCPPorts = [ 8443 ];
}