2021-04-19 05:45:08 +03:00
|
|
|
{ lib }:
|
2021-03-20 19:36:14 +03:00
|
|
|
|
|
|
|
{ users, profiles, userProfiles, suites } @ args:
|
|
|
|
let
|
2021-04-18 04:35:05 +03:00
|
|
|
inherit (lib) os;
|
2021-03-20 19:36:14 +03:00
|
|
|
|
|
|
|
definedSuites = suites {
|
|
|
|
inherit (args) users profiles userProfiles;
|
|
|
|
};
|
|
|
|
|
2021-04-26 06:53:16 +03:00
|
|
|
allProfiles = lib.collectProfiles profiles;
|
2021-03-20 19:36:14 +03:00
|
|
|
|
2021-04-26 06:53:16 +03:00
|
|
|
allUsers = lib.collectProfiles users;
|
2021-03-20 19:36:14 +03:00
|
|
|
|
|
|
|
createSuites = _: suites: lib.mapAttrs (_: v: os.profileMap v) suites // {
|
|
|
|
inherit allProfiles allUsers;
|
|
|
|
};
|
|
|
|
|
|
|
|
in
|
|
|
|
lib.mapAttrs createSuites definedSuites
|