From 45d27d43c4dfc0eb6f6b55aa9fbdfb90513271df Mon Sep 17 00:00:00 2001 From: Florian Brandes Date: Wed, 4 Jan 2023 20:45:47 +0100 Subject: [PATCH] nixos/unifi: fix mongodb to a stable version Otherwise unifi might break on a next big update just like https://github.com/NixOS/nixpkgs/pull/207382#issuecomment-1371303817 Also this requires an update of the unifi package. With the LTS version, newer mongodb versions aren't supported. The current supported version of unifi 7 is mongodb 3.6 acording to https://community.ui.com/releases/UniFi-Network-Application-7-0-20/3e4a4099-c063-42f6-8e21-5fb2c99fcea9 which isn't even supplied by nixpkgs anymore. mongodb-4_2 isn't officially supported, but works. Signed-off-by: Florian Brandes --- nixos/modules/services/networking/unifi.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nixos/modules/services/networking/unifi.nix b/nixos/modules/services/networking/unifi.nix index d220aa9fbbe4..91eb385518c3 100644 --- a/nixos/modules/services/networking/unifi.nix +++ b/nixos/modules/services/networking/unifi.nix @@ -33,8 +33,8 @@ in services.unifi.unifiPackage = mkOption { type = types.package; - default = pkgs.unifiLTS; - defaultText = literalExpression "pkgs.unifiLTS"; + default = pkgs.unifi5; + defaultText = literalExpression "pkgs.unifi5"; description = lib.mdDoc '' The unifi package to use. ''; @@ -42,10 +42,10 @@ in services.unifi.mongodbPackage = mkOption { type = types.package; - default = pkgs.mongodb; + default = pkgs.mongodb-4_2; defaultText = literalExpression "pkgs.mongodb"; description = lib.mdDoc '' - The mongodb package to use. + The mongodb package to use. Please note: unifi7 officially only supports mongodb up until 3.6 but works with 4.2. ''; };