convert flake-update to a submodule type

Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
This commit is contained in:
2024-05-15 00:38:59 -04:00
committed by Alice Huston
parent 3fb96c2248
commit 3696ebd976
4 changed files with 116 additions and 57 deletions

21
utils/default.nix Normal file
View 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);
};
}