add unifi.hades
This commit is contained in:
parent
b4212470b1
commit
41381e247f
2 changed files with 20 additions and 1 deletions
|
@ -21,7 +21,6 @@
|
||||||
hostname = "unifi";
|
hostname = "unifi";
|
||||||
ip = "192.168.0.101";
|
ip = "192.168.0.101";
|
||||||
mac = "5a:00:b7:6c:d1:e2";
|
mac = "5a:00:b7:6c:d1:e2";
|
||||||
nix = false;
|
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
hostname = "plex";
|
hostname = "plex";
|
||||||
|
|
20
nixos/hosts/hades/unifi/configuration.nix
Normal file
20
nixos/hosts/hades/unifi/configuration.nix
Normal 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 ];
|
||||||
|
}
|
Loading…
Reference in a new issue