modules: users: eta reduction of 'groupsIfExist'
This commit is contained in:
parent
56212a0c9e
commit
af1332fa89
|
@ -6,7 +6,7 @@ let
|
||||||
lib.lists.optional
|
lib.lists.optional
|
||||||
(builtins.hasAttr grp config.users.groups)
|
(builtins.hasAttr grp config.users.groups)
|
||||||
grp;
|
grp;
|
||||||
groupsIfExist = grps: builtins.concatMap groupIfExists grps;
|
groupsIfExist = builtins.concatMap groupIfExists;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
users.mutableUsers = false; # I want it to be declarative.
|
users.mutableUsers = false; # I want it to be declarative.
|
||||||
|
|
Loading…
Reference in a new issue