1
0
Fork 0
mirror of https://github.com/mdlayher/homelab.git synced 2024-12-14 11:47:32 +00:00

nixos/servnerr-3: run UniFi controller in container

Signed-off-by: Matt Layher <mdlayher@gmail.com>
This commit is contained in:
Matt Layher 2020-06-10 16:34:37 -04:00
parent 80ba4ddd83
commit 6af56202db
No known key found for this signature in database
GPG key ID: 77BFE531397EDE94

View file

@ -147,4 +147,19 @@ in {
volumes = [ "/var/lib/promlens:/var/lib/promlens" ];
};
};
containers = {
# UniFi controller running containerized and on unstable for faster updates.
unifi = {
autoStart = true;
config = { config, pkgs, ... }:
let unstable = import <unstable> { config.allowUnfree = true; };
in {
services.unifi = {
enable = true;
unifiPackage = unstable.unifi;
};
};
};
};
}