forked from auxolotl/labs
34 lines
742 B
Nix
34 lines
742 B
Nix
{
|
|
lib ? import ./../lib,
|
|
foundation ? import ./../foundation {system = "i686-linux";},
|
|
}: let
|
|
modules = import ./src/modules.nix;
|
|
|
|
result = lib.modules.run {
|
|
modules =
|
|
(builtins.attrValues modules)
|
|
++ [
|
|
./src/export.nix
|
|
{
|
|
__file__ = "broken";
|
|
|
|
# options.foundation = lib.options.create {
|
|
# type = lib.types.attrs.of lib.types.derivation;
|
|
# };
|
|
|
|
# config.foundation = foundation;
|
|
config.packages.foundation =
|
|
builtins.mapAttrs (name: package: {
|
|
name = package.name;
|
|
|
|
inherit package;
|
|
|
|
meta = package.meta;
|
|
})
|
|
foundation;
|
|
}
|
|
];
|
|
};
|
|
in
|
|
result.config
|