os/lib/devos/mkSuites.nix

21 lines
369 B
Nix
Raw Normal View History

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