2024-06-11 04:39:26 -07:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
}: let
|
|
|
|
lib' = config.lib;
|
2024-06-12 22:00:03 -07:00
|
|
|
# configure = namespace: packages:
|
|
|
|
# builtins.mapAttrs
|
|
|
|
# (key: package: let
|
|
|
|
# name =
|
|
|
|
# if package.pname != null && package.version != null
|
|
|
|
# then "${package.pname}-${package.version}"
|
|
|
|
# else key;
|
|
|
|
# in {
|
|
|
|
# name = lib.modules.overrides.default name;
|
|
|
|
# package = lib.modules.overrides.default (package.builder package);
|
|
|
|
# })
|
|
|
|
# packages;
|
|
|
|
# configs = builtins.mapAttrs configure config.packages;
|
2024-06-11 04:39:26 -07:00
|
|
|
in {
|
|
|
|
includes = [
|
2024-06-12 22:00:03 -07:00
|
|
|
# ./aux/foundation.nix
|
2024-06-11 04:39:26 -07:00
|
|
|
];
|
|
|
|
|
|
|
|
options = {
|
|
|
|
packages = lib.options.create {
|
|
|
|
type = lib'.types.packages;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-06-12 22:00:03 -07:00
|
|
|
# config = lib.modules.merge configs;
|
2024-06-11 04:39:26 -07:00
|
|
|
}
|