refactor(unifi): move to utsuho

This commit is contained in:
arcnmx 2024-03-21 08:19:43 -07:00
parent 18f69d3b07
commit a157150956
5 changed files with 19 additions and 13 deletions

View file

@ -10,6 +10,8 @@ in {
services.unifi = {
enable = mkDefault true;
unifiPackage = mkDefault pkgs.unifi8;
#seems to be *much* harder to compile so not going with this for now...
#mongodbPackage = mkDefault pkgs.mongodb-5_0;
};
networking.firewall.interfaces.local = mkIf cfg.enable {
@ -34,4 +36,9 @@ in {
users.unifi.uid = 990;
groups.unifi.gid = 990;
};
systemd.services.unifi = mkIf cfg.enable {
serviceConfig.BindPaths = [
"/mnt/shared/unifi:/var/lib/unifi"
];
};
}