convert flake-update to a submodule type
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
This commit is contained in:
21
utils/default.nix
Normal file
21
utils/default.nix
Normal file
@ -0,0 +1,21 @@
|
||||
{
|
||||
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