infrastructure/nixos/hosts/hades/unifi/configuration.nix

21 lines
464 B
Nix
Raw Normal View History

2022-09-30 11:40:05 +02:00
{ 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;
2022-09-30 11:57:34 +02:00
openFirewall = true;
2022-09-30 11:40:05 +02:00
};
# Required for Java
# gets forced to true due the lxc profile
environment.noXlibs = lib.mkForce false;
# Unifi Web Port
networking.firewall.allowedTCPPorts = [ 8443 ];
}