wrappers: expose config in standalone output (#1356)

This commit is contained in:
Matt Sturgeon 2024-04-01 15:12:25 +00:00 committed by GitHub
parent 14fca449b7
commit 3f7e6ce850
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 0 deletions

View file

@ -49,3 +49,9 @@ in
This will generate a `init.lua` that will contain the three comments from each stages.
## Accessing options used in an existing configuration
The `config` used to produce a standalone nixvim derivation can be accessed as an attribute on the derivation, similar to `nixvimExtend`.
This may be useful if you want unrelated parts of your NixOS or home-manager configuration to use the same value as something in your nixvim configuration.

View file

@ -52,6 +52,7 @@ default_pkgs: {
meta.mainProgram = "nvim";
})
// {
inherit config;
nixvimExtend = extension: mkNvim {imports = [mod extension];};
};
in