labs/tidepool/default.nix

22 lines
503 B
Nix
Raw Normal View History

{
lib ? import ./../lib,
2024-06-22 17:56:18 +00:00
foundation ? import ./../foundation { system = "i686-linux"; },
}:
let
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-22 17:56:18 +00:00
options.foundation = lib.options.create { type = lib.types.attrs.of lib.types.derivation; };
2024-06-22 17:56:18 +00:00
config.foundation = foundation;
}
];
};
in
2024-06-22 17:56:18 +00:00
result.config.exported // { inherit (result) config; }