From 88b4ba2169994650aabdd7591a6bfd70fb187690 Mon Sep 17 00:00:00 2001 From: Guillaume Girol Date: Fri, 17 Sep 2021 12:00:00 +0000 Subject: [PATCH] nixos/unifi: define group, fix after #133166 --- nixos/modules/misc/ids.nix | 2 +- nixos/modules/services/networking/unifi.nix | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/nixos/modules/misc/ids.nix b/nixos/modules/misc/ids.nix index d2e73193453..79e0d774d27 100644 --- a/nixos/modules/misc/ids.nix +++ b/nixos/modules/misc/ids.nix @@ -215,7 +215,7 @@ in ntp = 179; zabbix = 180; #redis = 181; removed 2018-01-03 - unifi = 183; + #unifi = 183; dynamically allocated as of 2021-09-17 uptimed = 184; zope2 = 185; ripple-data-api = 186; diff --git a/nixos/modules/services/networking/unifi.nix b/nixos/modules/services/networking/unifi.nix index 2e320378cc9..73170ebfc90 100644 --- a/nixos/modules/services/networking/unifi.nix +++ b/nixos/modules/services/networking/unifi.nix @@ -115,10 +115,12 @@ in config = mkIf cfg.enable { users.users.unifi = { - uid = config.ids.uids.unifi; + isSystemUser = true; + group = "unifi"; description = "UniFi controller daemon user"; home = "${stateDir}"; }; + users.groups.unifi = {}; networking.firewall = mkIf cfg.openPorts { # https://help.ubnt.com/hc/en-us/articles/218506997