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-13 17:22:57 +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-13 17:22:57 +00:00
|
|
|
# config.foundation = foundation;
|
2024-06-14 08:26:16 +00:00
|
|
|
# config.packages.foundation =
|
|
|
|
# builtins.mapAttrs (name: package: {
|
|
|
|
# name = package.name;
|
2024-06-13 17:22:57 +00:00
|
|
|
|
2024-06-14 08:26:16 +00:00
|
|
|
# inherit package;
|
2024-06-13 17:22:57 +00:00
|
|
|
|
2024-06-14 08:26:16 +00:00
|
|
|
# meta = package.meta;
|
|
|
|
# })
|
|
|
|
# foundation;
|
2024-06-09 13:27:35 +00:00
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
in
|
2024-06-13 17:22:57 +00:00
|
|
|
result.config
|