nixos/unifi: define group, fix after #133166

This commit is contained in:
Guillaume Girol 2021-09-17 12:00:00 +00:00 committed by Yuka
parent 3a00e2e34a
commit 88b4ba2169
2 changed files with 4 additions and 2 deletions

View File

@ -215,7 +215,7 @@ in
ntp = 179; ntp = 179;
zabbix = 180; zabbix = 180;
#redis = 181; removed 2018-01-03 #redis = 181; removed 2018-01-03
unifi = 183; #unifi = 183; dynamically allocated as of 2021-09-17
uptimed = 184; uptimed = 184;
zope2 = 185; zope2 = 185;
ripple-data-api = 186; ripple-data-api = 186;

View File

@ -115,10 +115,12 @@ in
config = mkIf cfg.enable { config = mkIf cfg.enable {
users.users.unifi = { users.users.unifi = {
uid = config.ids.uids.unifi; isSystemUser = true;
group = "unifi";
description = "UniFi controller daemon user"; description = "UniFi controller daemon user";
home = "${stateDir}"; home = "${stateDir}";
}; };
users.groups.unifi = {};
networking.firewall = mkIf cfg.openPorts { networking.firewall = mkIf cfg.openPorts {
# https://help.ubnt.com/hc/en-us/articles/218506997 # https://help.ubnt.com/hc/en-us/articles/218506997