From f5235d311eb197dbe16a93e05383b17b95f2b3e5 Mon Sep 17 00:00:00 2001 From: Matt Sturgeon Date: Thu, 20 Nov 2025 02:10:39 +0000 Subject: [PATCH] lib: rename `default.nix` to `top-level.nix` Rename `lib/default.nix` to `lib/top-level.nix` to make its purpose explicit and discourage importing it directly. Consumers should obtain the extended lib via flake outputs or the overlay, rather than bypassing the required bootstrapping logic. This clarifies the file's role and avoids suggesting it is the primary entrypoint to Nixvim's lib subsection. --- flake/lib.nix | 2 +- lib/{default.nix => top-level.nix} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename lib/{default.nix => top-level.nix} (100%) diff --git a/flake/lib.nix b/flake/lib.nix index 35ba71c2..04798f14 100644 --- a/flake/lib.nix +++ b/flake/lib.nix @@ -13,7 +13,7 @@ # Public `lib` flake output flake.lib = { - nixvim = lib.makeOverridable (import ../lib) { + nixvim = lib.makeOverridable (import ../lib/top-level.nix) { inherit lib; flake = self; }; diff --git a/lib/default.nix b/lib/top-level.nix similarity index 100% rename from lib/default.nix rename to lib/top-level.nix