Merge pull request #78378 from Izorkin/unit-fix

nixos/unit: fix attrs
This commit is contained in:
Aaron Andersen 2020-01-23 15:46:23 -05:00 committed by GitHub
commit b8cf3411d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -130,8 +130,10 @@ in {
};
users.users = optionalAttrs (cfg.user == "unit") {
unit.group = cfg.group;
isSystemUser = true;
unit = {
group = cfg.group;
isSystemUser = true;
};
};
users.groups = optionalAttrs (cfg.group == "unit") {