2024-06-09 13:27:35 +00:00
|
|
|
{
|
|
|
|
lib ? import ./../lib,
|
2024-06-22 17:56:18 +00:00
|
|
|
foundation ? import ./../foundation { system = "i686-linux"; },
|
|
|
|
}:
|
|
|
|
let
|
2024-06-09 13:27:35 +00:00
|
|
|
modules = import ./src/modules.nix;
|
|
|
|
|
|
|
|
result = lib.modules.run {
|
2024-06-22 17:56:18 +00:00
|
|
|
modules = (builtins.attrValues modules) ++ [
|
|
|
|
./src/export.nix
|
|
|
|
{
|
|
|
|
__file__ = ./default.nix;
|
2024-06-09 13:27:35 +00:00
|
|
|
|
2024-06-22 17:56:18 +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-22 17:56:18 +00:00
|
|
|
config.foundation = foundation;
|
|
|
|
}
|
|
|
|
];
|
2024-06-09 13:27:35 +00:00
|
|
|
};
|
|
|
|
in
|
2024-06-22 17:56:18 +00:00
|
|
|
result.config.exported // { inherit (result) config; }
|