os/lib/devos/mkSuites.nix

21 lines
414 B
Nix
Raw Normal View History

2021-04-19 02:45:08 +00:00
{ lib }:
{ users, profiles, userProfiles, suites } @ args:
let
2021-04-18 01:35:05 +00:00
inherit (lib) os;
definedSuites = suites {
inherit (args) users profiles userProfiles;
};
allProfiles = lib.collectProfiles profiles;
allUsers = lib.collectProfiles users;
createSuites = _: suites: lib.mapAttrs (_: v: os.profileMap v) suites // {
inherit allProfiles allUsers;
};
in
lib.mapAttrs createSuites definedSuites