mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
refactor(unifi): move to utsuho
This commit is contained in:
parent
18f69d3b07
commit
a157150956
5 changed files with 19 additions and 13 deletions
|
|
@ -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"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue