mirror of
https://github.com/divnix/digga.git
synced 2024-12-26 01:26:23 +03:00
40b49c52c1
This core will be used as the new base for the reuse branch, which is essentiall the same as the existing template branch, except that it is rebased from this core, simplifying future rebasing.
23 lines
475 B
Nix
23 lines
475 B
Nix
{ lib, profiles }:
|
|
let
|
|
inherit (builtins) mapAttrs isFunction;
|
|
|
|
allProfiles =
|
|
let
|
|
filtered = lib.filterAttrs (n: _: n != "core") profiles;
|
|
in
|
|
lib.collect isFunction filtered;
|
|
|
|
allUsers = lib.collect isFunction users;
|
|
|
|
users = lib.flk.defaultImports (toString ../users);
|
|
in
|
|
with profiles;
|
|
mapAttrs (_: v: lib.flk.profileMap v)
|
|
# define your own suites below
|
|
rec {
|
|
core = [ users.nixos users.root ];
|
|
} // {
|
|
inherit allProfiles allUsers;
|
|
}
|