pub-solar-os/suites/default.nix
2021-02-06 01:31:48 -07:00

25 lines
531 B
Nix

{ lib }:
let
inherit (builtins) mapAttrs isFunction;
inherit (lib.flk) importDefaults;
profiles = importDefaults (toString ../profiles);
users = importDefaults (toString ../users);
allProfiles =
let
sansCore = lib.filterAttrs (n: _: n != "core") profiles;
in
lib.collect isFunction sansCore;
allUsers = lib.collect isFunction users;
suites = with profiles; rec {
core = [ users.nixos users.root ];
};
in
mapAttrs (_: v: lib.flk.profileMap v) suites // {
inherit allProfiles allUsers;
}