1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-12-12 03:51:10 +01:00
nixvim/flake
Matt Sturgeon 53b702b367 wrappers: expose platform wrapper modules via build.*Module options
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`).
2025-12-09 08:01:49 +00:00
..
dev flake: Update 2025-12-08 12:23:10 +00:00
flake-modules flake/auto: nameFunction default to lib.id 2025-01-20 15:11:39 +00:00
ci.nix flake/ci: fix lazy eval of dev partition 2025-07-08 17:12:15 +00:00
default.nix flake: add inputs option 2025-12-05 13:44:35 +00:00
inputs.nix flake: add inputs option 2025-12-05 13:44:35 +00:00
lib.nix flake: remove lib.<system>.helpers 2025-12-03 10:34:03 +00:00
nixvim-configurations.nix flake: simplify legacyPackages definitions 2025-11-24 11:45:28 +00:00
overlays.nix flake: add nixf-diagnose to treefmt config 2025-10-01 00:42:40 +00:00
packages.nix flake: move the nuschtosSearch input to the dev flake 2025-12-05 13:44:35 +00:00
templates.nix treewide: NixVim/nixvim -> Nixvim 2025-12-04 23:22:21 +00:00
wrappers.nix wrappers: expose platform wrapper modules via build.*Module options 2025-12-09 08:01:49 +00:00