mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 04:19:19 -08:00
feat: overlays + pkgs
This commit is contained in:
parent
bed84b16b0
commit
5da80d3c52
17 changed files with 210 additions and 91 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
{inputs, ...}: {
|
||||
{
|
||||
inputs,
|
||||
tree,
|
||||
...
|
||||
}: {
|
||||
nixpkgs = {
|
||||
overlays = map (path: import "${path}/overlay.nix") [
|
||||
inputs.arcexprs
|
||||
];
|
||||
overlays = import tree.overlays {inherit inputs;};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue