labs/potluck/src/packages/default.nix

32 lines
696 B
Nix
Raw Normal View History

{
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;
in {
includes = [
2024-06-12 22:00:03 -07:00
# ./aux/foundation.nix
];
options = {
packages = lib.options.create {
type = lib'.types.packages;
};
};
2024-06-12 22:00:03 -07:00
# config = lib.modules.merge configs;
}