migrate lib functions to lib/, remove extra overlays

Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
This commit is contained in:
2024-05-16 11:39:01 -04:00
committed by Alice Huston
parent 298d7423c6
commit 5261a65ecc
3 changed files with 78 additions and 60 deletions

View File

@ -1,21 +0,0 @@
{
config,
lib,
pkgs,
...
}:
{
# create rad-dev namespace for lib
rad-dev = {
# any(), but checks if any value in the list is true
# type:
# anyBool:: [bool] -> bool
anyBool = lib.any (n: n);
# pulls a value out of an attrset and converts it to a list
# type:
# mapGetAttr :: String -> Attrset -> [Any]
mapGetAttr = (attr: set: lib.mapAttrsToList (_: attrset: lib.getAttr attr attrset) set);
};
}