diff --git a/nixos/servnerr-3/configuration.nix b/nixos/servnerr-3/configuration.nix index 83e9c56..03283f1 100644 --- a/nixos/servnerr-3/configuration.nix +++ b/nixos/servnerr-3/configuration.nix @@ -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 { config.allowUnfree = true; }; + in { + services.unifi = { + enable = true; + unifiPackage = unstable.unifi; + }; + }; + }; + }; }