mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
wrappers: add env-specific config as part of NixVim module (#1075)
* wrappers: add env-specific config as part of NixVim module * docs: add section for env-specific module arguments
This commit is contained in:
parent
9cd3721adf
commit
d6a66851fe
4 changed files with 15 additions and 3 deletions
|
@ -57,6 +57,9 @@ The imports can be added as a `imports = [ <nixvim_import> ]` in a configuration
|
|||
You will then be able to enable nixvim through `programs.nixvim.enable = true`, and configure the
|
||||
options as `programs.nixvim.<path>.<to>.<option> = <value>`.
|
||||
|
||||
When you use nixvim as a module, an additional module argument is passed on allowing you to peek through the configuration with `hmConfig`, `nixosConfig`, and `darwinConfig` for home-manager, NixOS, and nix-darwin respectively.
|
||||
This is useful is you use nixvim both as part of an environment and as standalone.
|
||||
|
||||
## Standalone usage
|
||||
|
||||
When using nixvim as a standalone derivation you can use the following functions, located in `<nixvim>.legacyPackages.${system}`:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue