nixos/collectd: add missing group

While upgrading my NixOS system I was greeted by this error:

  error:
  Failed assertions:
  - users.users.collectd.group is unset. This used to default to
  nogroup, but this is unsafe. For example you can create a group
  for this user with:
  users.users.collectd.group = "collectd";
  users.groups.collectd = {};

Let's fix it.
This commit is contained in:
Bjørn Forsman 2021-12-05 17:06:31 +01:00
parent 56cbe42f16
commit 05bc708a7f

View File

@ -132,7 +132,12 @@ in {
users.users = optionalAttrs (cfg.user == "collectd") { users.users = optionalAttrs (cfg.user == "collectd") {
collectd = { collectd = {
isSystemUser = true; isSystemUser = true;
group = "collectd";
}; };
}; };
users.groups = optionalAttrs (cfg.user == "collectd") {
collectd = {};
};
}; };
} }