labs/potluck/default.nix

31 lines
715 B
Nix
Raw Normal View History

{
lib ? import ./../lib,
2024-06-13 12:00:59 +00:00
system ? builtins.currentSystem,
foundation ? import ./../foundation { inherit system; },
}:
let
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-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-13 12:00:59 +00:00
};
2024-06-13 12:00:59 +00:00
config.packages.aux = {
inherit foundation;
};
}
];
};
in
2024-06-13 12:00:59 +00:00
result.config.exported