mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 04:02:55 +03:00
nixos/unifi: define group, fix after #133166
This commit is contained in:
parent
3a00e2e34a
commit
88b4ba2169
@ -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;
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user