diff options
Diffstat (limited to 'lib/default.nix')
| -rw-r--r-- | lib/default.nix | 21 |
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; -} |
