migrate lib functions to lib/, remove extra overlays
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
This commit is contained in:
@ -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);
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user