modules: users: eta reduction of 'groupsIfExist'

This commit is contained in:
Bruno BELANYI 2021-03-08 19:02:28 +00:00
parent 56212a0c9e
commit af1332fa89

View file

@ -6,7 +6,7 @@ let
lib.lists.optional
(builtins.hasAttr grp config.users.groups)
grp;
groupsIfExist = grps: builtins.concatMap groupIfExists grps;
groupsIfExist = builtins.concatMap groupIfExists;
in
{
users.mutableUsers = false; # I want it to be declarative.