mirror of
https://github.com/nix-community/nixvim.git
synced 2025-12-13 04:21:10 +01:00
Expose the platform wrapper modules as the Nixvim configuration options `build.nixosModule`, `build.homeModule`, and `build.nixDarwinModule`. This makes it possible to reuse a single Nixvim configuration across NixOS, Home Manager, and nix-darwin without re-importing modules into `programs.nixvim` manually. Evaluating these wrapper modules requires a "bare" Nixvim configuration; one that does not define `pkgs` or `nixpkgs.hostPlatform`. Such a configuration would normally fail to evaluate, but disabling `_module.check` provides a sufficiently lazy evaluation to access the wrapper options. To prevent the `_module.check = false` module from leaking into user configs, it has a unique module key and gets disabled inside the wrapper modules (`wrappers/_shared.nix`).
29 lines
628 B
Nix
29 lines
628 B
Nix
# This module includes the nixvim modules that should always be evaluated.
|
|
#
|
|
# You may want to use the `/modules/top-level` module instead, unless you're
|
|
# using this in a submodule nested within another nixvim config.
|
|
{
|
|
imports = [
|
|
./lsp
|
|
./misc
|
|
./autocmd.nix
|
|
./clipboard.nix
|
|
./colorscheme.nix
|
|
./commands.nix
|
|
./dependencies.nix
|
|
./diagnostic.nix
|
|
./doc.nix
|
|
./editorconfig.nix
|
|
./files.nix
|
|
./filetype.nix
|
|
./highlights.nix
|
|
./keymaps.nix
|
|
./lazyload.nix
|
|
./lua-loader.nix
|
|
./opts.nix
|
|
./output.nix
|
|
./performance.nix
|
|
./plugins.nix
|
|
./wrappers.nix
|
|
];
|
|
}
|