summaryrefslogtreecommitdiff
path: root/lib/default.nix
diff options
context:
space:
mode:
authorMike Vink <mike1994vink@gmail.com>2023-11-20 10:36:20 +0000
committerMike Vink <mike1994vink@gmail.com>2023-11-20 10:36:20 +0000
commit228dfe4ab48689281ec5e603242e50d52330d568 (patch)
tree724da9523ac1bc31d5e076883d21bc2446825fd8 /lib/default.nix
parentcab61c714497d00a7d5b7c30f6813333e5801451 (diff)
fixup
Diffstat (limited to 'lib/default.nix')
-rw-r--r--lib/default.nix21
1 files changed, 0 insertions, 21 deletions
diff --git a/lib/default.nix b/lib/default.nix
deleted file mode 100644
index 7b80611..0000000
--- a/lib/default.nix
+++ /dev/null
@@ -1,21 +0,0 @@
-self: lib: prev: with lib; {
- modulesIn = dir: pipe dir [
- builtins.readDir
- (mapAttrsToList (name: type:
- if type == "regular" && hasSuffix ".nix" name && name != "default.nix" then
- [ { name = removeSuffix ".nix" name; value = dir + "/${name}"; } ]
- else if type == "directory" && pathExists (dir + "/${name}/default.nix") then
- [ { inherit name; value = dir + "/${name}"; } ]
- else
- []
- ))
- concatLists
- listToAttrs
- ];
-
- # Collects the inputs of a flake recursively (with possible duplicates).
- collectFlakeInputs = input:
- [ input ] ++ concatMap collectFlakeInputs (builtins.attrValues (input.inputs or {}));
-
- ivi = import ./ivi.nix self lib;
-}