os/lib/devos/mkSuites.nix

21 lines
369 B
Nix
Raw Normal View History

2021-04-18 21:45:08 -05:00
{ lib }:
{ suites, profiles } @ args:
let
2021-04-17 20:35:05 -05: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;
}