From 41acbdd3e0e21445e19ed783b19e9455644fcf93 Mon Sep 17 00:00:00 2001 From: hexchen Date: Mon, 23 Aug 2021 18:43:23 +0000 Subject: [PATCH] parsons: deploy unifi controller --- hosts/parsons/configuration.nix | 1 + services/unifi.nix | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 services/unifi.nix diff --git a/hosts/parsons/configuration.nix b/hosts/parsons/configuration.nix index f7efc33..f3d704e 100644 --- a/hosts/parsons/configuration.nix +++ b/hosts/parsons/configuration.nix @@ -19,6 +19,7 @@ ../../services/gitlab.nix ../../services/nginx-pages.nix ../../services/gitlab-runner.nix + ../../services/unifi.nix ./lxc.nix ]; diff --git a/services/unifi.nix b/services/unifi.nix new file mode 100644 index 0000000..bf7ea5e --- /dev/null +++ b/services/unifi.nix @@ -0,0 +1,10 @@ +{ config, lib, pkgs, ... }: + +{ + nixpkgs.config.allowUnfree = true; + services.unifi = { + enable = true; + openPorts = true; + dataDir = "/persist/var/lib/unifi"; + }; +}