modules/nixpkgs: add useGlobalPackages option

This commit is contained in:
Matt Sturgeon 2024-10-20 00:11:36 +01:00
parent 912841c1a7
commit 7790746d38
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
5 changed files with 185 additions and 18 deletions

View file

@ -41,8 +41,9 @@ in
# }
# '';
defaultText = lib.literalMD ''
The `pkgs` inherited from your host config (i.e. NixOS, home-manager, or nix-darwin),
or the `pkgs` supplied to `makeNixvimWithModule` when building a standalone nixvim.
If `useGlobalPackages` is true, `pkgs` is inherited from your host config
(i.e. NixOS, home-manager, or nix-darwin).
Or the `pkgs` supplied to `makeNixvimWithModule` when building a standalone nixvim.
> [!CAUTION]
> This default will be removed in a future version of nixvim