mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-21 17:40:45 -06:00
pipes pipes
This commit is contained in:
parent
a738b58baf
commit
c56c791088
1 changed files with 15 additions and 13 deletions
|
@ -47,21 +47,22 @@ let
|
||||||
# ["a" "b"] -> {a.enable = true; b.enable = true;}
|
# ["a" "b"] -> {a.enable = true; b.enable = true;}
|
||||||
enableAttrs =
|
enableAttrs =
|
||||||
attrs:
|
attrs:
|
||||||
listToAttrs (
|
attrs
|
||||||
map (attr: {
|
|> map (attr: {
|
||||||
name = attr;
|
name = attr;
|
||||||
value = enabled;
|
value = enabled;
|
||||||
}) attrs
|
})
|
||||||
);
|
|> listToAttrs;
|
||||||
|
|
||||||
# ["a" "b"] -> {a.enable = false; b.enable = false;}
|
# ["a" "b"] -> {a.enable = false; b.enable = false;}
|
||||||
disableAttrs =
|
disableAttrs =
|
||||||
attrs:
|
attrs:
|
||||||
listToAttrs (
|
attrs
|
||||||
map (attr: {
|
|> map (attr: {
|
||||||
name = attr;
|
name = attr;
|
||||||
value = disabled;
|
value = disabled;
|
||||||
}) attrs
|
})
|
||||||
);
|
|> listToAttrs;
|
||||||
|
|
||||||
mkIfIn = name: list: prev.mkIf (builtins.elem name list);
|
mkIfIn = name: list: prev.mkIf (builtins.elem name list);
|
||||||
|
|
||||||
|
@ -110,7 +111,8 @@ let
|
||||||
};
|
};
|
||||||
|
|
||||||
loadOverlays =
|
loadOverlays =
|
||||||
inputs: dir: readDir dir
|
inputs: dir:
|
||||||
|
readDir dir
|
||||||
|> attrNames
|
|> attrNames
|
||||||
|> filter (f: f != "default.nix")
|
|> filter (f: f != "default.nix")
|
||||||
|> map (f: import (../overlays + "/${f}") { inherit inputs; });
|
|> map (f: import (../overlays + "/${f}") { inherit inputs; });
|
||||||
|
|
Loading…
Reference in a new issue