lib: rename helpers.nix -> default.nix

The old `default.nix` is inlined into the "lib" flake-module, which is
the only place it was used.

This allows "helpers" to take its rightful place at the root of `./lib` 👑
This commit is contained in:
Matt Sturgeon 2024-09-13 14:44:42 +01:00
parent 0b665b200b
commit 7a147234f8
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
9 changed files with 116 additions and 122 deletions

View file

@ -46,8 +46,7 @@ in
config = mkMerge [
{
# Make our lib available to the host modules
# TODO: import top-level ../lib
lib.nixvim = lib.mkDefault (import ../lib/helpers.nix { inherit pkgs lib; });
lib.nixvim = lib.mkDefault (import ../lib { inherit pkgs lib; });
# Make nixvim's "extended" lib available to the host's module args
_module.args.nixvimLib = lib.mkDefault config.lib.nixvim.extendedLib;

View file

@ -7,7 +7,7 @@ default_pkgs: self:
module,
}:
let
helpers = import ../lib/helpers.nix { inherit pkgs lib _nixvimTests; };
helpers = import ../lib { inherit pkgs lib _nixvimTests; };
inherit (helpers.modules) evalNixvim;