htgen: generate group for every user

This commit is contained in:
lassulus 2021-12-01 17:55:22 +01:00
parent 93fb28ac98
commit 280ed594fb

View File

@ -69,10 +69,13 @@ let
users.users = mapAttrs' (name: htgen: users.users = mapAttrs' (name: htgen:
nameValuePair htgen.user.name { nameValuePair htgen.user.name {
inherit (htgen.user) home name uid; inherit (htgen.user) home name uid;
group = htgen.user.name;
createHome = true; createHome = true;
isSystemUser = true; isSystemUser = true;
} }
) cfg; ) cfg;
users.groups = mapAttrs (_: _: {}) cfg;
}; };
in out in out