add unifi.hades

This commit is contained in:
Vivian 2022-09-30 11:40:05 +02:00
parent b4212470b1
commit 41381e247f
2 changed files with 20 additions and 1 deletions

View file

@ -21,7 +21,6 @@
hostname = "unifi";
ip = "192.168.0.101";
mac = "5a:00:b7:6c:d1:e2";
nix = false;
}
{
hostname = "plex";

View file

@ -0,0 +1,20 @@
{ 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;
openPorts = true;
};
# Required for Java
# gets forced to true due the lxc profile
environment.noXlibs = lib.mkForce false;
# Unifi Web Port
networking.firewall.allowedTCPPorts = [ 8443 ];
}