2021-02-06 08:31:48 +00:00
|
|
|
{ lib }:
|
|
|
|
let
|
2021-03-14 07:10:51 +00:00
|
|
|
inherit (lib) dev;
|
2021-02-06 08:31:48 +00:00
|
|
|
|
2021-03-14 07:10:51 +00:00
|
|
|
profiles = dev.os.mkProfileAttrs (toString ../profiles);
|
|
|
|
users = dev.os.mkProfileAttrs (toString ../users);
|
2021-02-06 08:31:48 +00:00
|
|
|
|
|
|
|
allProfiles =
|
2021-02-25 21:47:19 +00:00
|
|
|
let defaults = lib.collect (x: x ? default) profiles;
|
|
|
|
in map (x: x.default) defaults;
|
2021-02-06 08:31:48 +00:00
|
|
|
|
2021-02-25 21:47:19 +00:00
|
|
|
allUsers =
|
|
|
|
let defaults = lib.collect (x: x ? default) users;
|
|
|
|
in map (x: x.default) defaults;
|
2021-02-06 08:31:48 +00:00
|
|
|
|
|
|
|
|
|
|
|
suites = with profiles; rec {
|
2021-02-25 21:47:19 +00:00
|
|
|
base = [ users.nixos users.root ];
|
2021-02-06 08:31:48 +00:00
|
|
|
};
|
|
|
|
in
|
2021-03-14 07:10:51 +00:00
|
|
|
lib.mapAttrs (_: v: dev.os.profileMap v) suites // {
|
2021-02-06 08:31:48 +00:00
|
|
|
inherit allProfiles allUsers;
|
|
|
|
}
|