2024-06-09 13:27:35 +00:00
|
|
|
{
|
|
|
|
lib ? import ./../lib,
|
2024-06-13 12:00:59 +00:00
|
|
|
system ? builtins.currentSystem,
|
|
|
|
foundation ? import ./../foundation { inherit system; },
|
|
|
|
}:
|
|
|
|
let
|
2024-06-09 13:27:35 +00:00
|
|
|
modules = import ./src/modules.nix;
|
|
|
|
|
|
|
|
result = lib.modules.run {
|
2024-06-13 12:00:59 +00:00
|
|
|
modules = (builtins.attrValues modules) ++ [
|
|
|
|
./src/export.nix
|
|
|
|
{
|
|
|
|
__file__ = ./default.nix;
|
2024-06-09 13:27:35 +00:00
|
|
|
|
2024-06-13 12:00:59 +00:00
|
|
|
options.packages.aux = {
|
|
|
|
foundation = lib.options.create {
|
|
|
|
type = lib.types.attrs.of lib.types.package;
|
|
|
|
internal = true;
|
|
|
|
description = "The foundational packages used to construct the larger package set.";
|
2024-06-09 13:27:35 +00:00
|
|
|
};
|
2024-06-13 12:00:59 +00:00
|
|
|
};
|
2024-06-09 13:27:35 +00:00
|
|
|
|
2024-06-13 12:00:59 +00:00
|
|
|
config.packages.aux = {
|
|
|
|
inherit foundation;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
];
|
2024-06-09 13:27:35 +00:00
|
|
|
};
|
|
|
|
in
|
2024-06-13 12:00:59 +00:00
|
|
|
result.config.exported
|