labs/foundation/flake.nix

41 lines
798 B
Nix
Raw Normal View History

2024-06-05 02:04:40 +00:00
{
description = "A set of foundational packages required for bootstrapping a larger package set.";
inputs = {
lib = {
url = "path:../lib";
};
};
outputs = inputs: let
inherit (inputs.lib) lib;
modules = import ./src;
forEachSystem = lib.attrs.generate [
2024-06-07 05:49:52 +00:00
"i686-linux"
2024-06-05 02:04:40 +00:00
];
in {
2024-06-05 22:16:52 +00:00
extras = let
result = lib.modules.run {
modules =
builtins.attrValues modules;
};
in
result.config.exports.resolved.extras;
2024-06-05 02:04:40 +00:00
packages = forEachSystem (
system: let
result = lib.modules.run {
modules =
(builtins.attrValues modules)
++ [
{config.aux.system = system;}
];
};
in
result.config.exports.resolved.packages
);
};
}