feat: overlays + pkgs

This commit is contained in:
Kat Inskip 2023-01-27 15:20:34 -08:00
parent bed84b16b0
commit 5da80d3c52
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
17 changed files with 210 additions and 91 deletions

View file

@ -3,13 +3,17 @@
lib,
std,
inputs,
tree,
...
}: let
inherit (std) set tuple list;
inherit (lib.strings) versionAtLeast;
renameAttrs = names: set.remap ({_0, _1}: tuple.tuple2 (names.${_0} or _0) _1);
renameAttr = oldName: newName: renameAttrs { ${oldName} = newName; };
renameAttrs = names:
set.remap ({
_0,
_1,
}:
tuple.tuple2 (names.${_0} or _0) _1);
renameAttr = oldName: newName: renameAttrs {${oldName} = newName;};
in {
nix = {
nixPath = set.mapToValues (name: flake: "${name}=${flake.outPath}") (renameAttr "self" "kat" inputs);

View file

@ -1,7 +1,9 @@
{inputs, ...}: {
{
inputs,
tree,
...
}: {
nixpkgs = {
overlays = map (path: import "${path}/overlay.nix") [
inputs.arcexprs
];
overlays = import tree.overlays {inherit inputs;};
};
}