2024-06-09 13:27:35 +00:00
|
|
|
{
|
|
|
|
lib ? import ./../lib,
|
|
|
|
foundation ? import ./../foundation {system = "i686-linux";},
|
|
|
|
}: let
|
|
|
|
modules = import ./src/modules.nix;
|
|
|
|
|
|
|
|
result = lib.modules.run {
|
|
|
|
modules =
|
2024-06-11 11:39:26 +00:00
|
|
|
(builtins.attrValues modules)
|
2024-06-09 13:27:35 +00:00
|
|
|
++ [
|
2024-06-11 11:39:26 +00:00
|
|
|
./src/export.nix
|
2024-06-09 13:27:35 +00:00
|
|
|
{
|
2024-06-14 08:26:16 +00:00
|
|
|
__file__ = ./default.nix;
|
2024-06-09 13:27:35 +00:00
|
|
|
|
2024-06-14 11:55:15 +00:00
|
|
|
options.foundation = lib.options.create {
|
|
|
|
type = lib.types.attrs.of lib.types.derivation;
|
|
|
|
};
|
2024-06-09 13:27:35 +00:00
|
|
|
|
2024-06-14 11:55:15 +00:00
|
|
|
config.foundation = foundation;
|
2024-06-09 13:27:35 +00:00
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
in
|
2024-06-14 11:55:15 +00:00
|
|
|
result.config.exported
|
2024-06-16 09:24:21 +00:00
|
|
|
// {
|
|
|
|
inherit (result) config;
|
|
|
|
}
|