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:
parent
80ba4ddd83
commit
6af56202db
1 changed files with 15 additions and 0 deletions
|
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue