infrastructure/nixos/hosts/hades/unifi/configuration.nix
Victor Roest 0c59d6c7e2
All checks were successful
Plex Update / update (push) Successful in 9s
Lint / lint (push) Successful in 2s
fix unifi mongo version
2023-06-13 10:02:27 +02:00

20 lines
500 B
Nix

{ pkgs, lib, pkgs_22-11,... }: {
system.stateVersion = "21.05";
networking.interfaces.eth0.useDHCP = true;
environment.systemPackages = [ pkgs_22-11.mongodb-4_2 ];
services.unifi = {
enable = true;
unifiPackage = pkgs.unifi;
mongodbPackage = pkgs_22-11.mongodb-4_2;
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 ];
}