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

19 lines
423 B
Nix
Raw Normal View History

2023-05-04 13:08:10 +02:00
{ pkgs, lib, ... }: {
2022-09-30 11:40:05 +02:00
system.stateVersion = "21.05";
networking.interfaces.eth0.useDHCP = true;
services.unifi = {
enable = true;
unifiPackage = pkgs.unifi;
2023-05-01 08:47:21 +02:00
mongodbPackage = pkgs.mongodb-4_2;
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 ];
}