htgen: generate group for every user
This commit is contained in:
parent
93fb28ac98
commit
280ed594fb
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user