This commit is contained in:
Vivian 2023-01-15 13:34:09 +01:00
parent e3596a9aa2
commit b5309a7f33
3 changed files with 31 additions and 1 deletions

View file

@ -2,7 +2,7 @@
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, lib, ... }:
{ config, pkgs, lib, pkgs_22-11, ... }:
{
imports = [ ];
@ -25,6 +25,9 @@
services.unifi = {
enable = true;
unifiPackage = pkgs.unifi;
# /nix/store/wlk5idiz9kqkans7j3vxp7bgg03xc2c6-mongodb-3.6.13/bin/mongod --noauth --dbpath /var/lib/unifi/data/db --journal
# https://www.reddit.com/r/UNIFI/comments/lpwpyk/unifi_controller_any_version_mongodb_36_nearing/
mongodbPackage = pkgs_22-11.mongodb-3_6; # TODO: Upgrade 3.6 to 4.2
openFirewall = true;
};
}