1
1
mirror of https://github.com/divnix/digga.git synced 2024-12-26 09:34:15 +03:00
digga/profiles/suites.nix

23 lines
475 B
Nix
Raw Normal View History

{ lib, profiles }:
let
inherit (builtins) mapAttrs isFunction;
2021-02-02 06:57:14 +03:00
allProfiles =
let
filtered = lib.filterAttrs (n: _: n != "core") profiles;
in
lib.collect isFunction filtered;
2021-02-02 06:57:14 +03:00
allUsers = lib.collect isFunction users;
users = lib.flk.defaultImports (toString ../users);
in
with profiles;
mapAttrs (_: v: lib.flk.profileMap v)
2021-02-02 06:57:14 +03:00
# define your own suites below
rec {
core = [ users.nixos users.root ];
} // {
2021-02-02 06:57:14 +03:00
inherit allProfiles allUsers;
}