2021-04-19 02:45:08 +00:00
|
|
|
{ lib }:
|
2021-03-20 16:36:14 +00:00
|
|
|
|
2021-04-26 17:52:26 +00:00
|
|
|
{ suites, profiles } @ args:
|
2021-03-20 16:36:14 +00:00
|
|
|
let
|
2021-04-18 01:35:05 +00:00
|
|
|
inherit (lib) os;
|
2021-03-20 16:36:14 +00:00
|
|
|
|
2021-04-26 17:52:26 +00:00
|
|
|
profileSet = lib.genAttrs' profiles (path: {
|
|
|
|
name = baseNameOf path;
|
|
|
|
value = os.mkProfileAttrs (toString path);
|
|
|
|
});
|
2021-03-20 16:36:14 +00:00
|
|
|
|
2021-04-26 17:52:26 +00:00
|
|
|
definedSuites = suites profileSet;
|
2021-03-20 16:36:14 +00:00
|
|
|
|
2021-04-26 17:52:26 +00:00
|
|
|
allProfiles = lib.collectProfiles profileSet;
|
|
|
|
in
|
|
|
|
lib.mapAttrs (_: v: os.profileMap v) definedSuites // {
|
|
|
|
inherit allProfiles;
|
|
|
|
}
|
2021-03-20 16:36:14 +00:00
|
|
|
|
|
|
|
|