Repository navigation
feat(nvf): add the nvf integration - #99
Merged
Merged
Conversation
This was referenced Oct 17, 2026
clhodapp
force-pushed
the
feat/nvf
branch
2 times, most recently
from
October 18, 2026 06:38
078c73c to
8ca6a08
Compare
clhodapp
force-pushed
the
feat/nvf
branch
2 times, most recently
from
October 18, 2026 08:27
5e05ba1 to
f322c96
Compare
An nvf configuration is a Neovim written as nvf modules, evaluated per system, once for each system in force, on the selected package set. caisson evaluates nvf's module list with its own `evalModules`, with the special arguments nvf's `neovimConfiguration` passes, on the composed library extended with `lib.nvim` from the same nvf flake. A configuration is published as `nvfConfigurations.<system>.<name>`, in the shape `neovimConfiguration` returns: `neovim`, `config` and `options`. The pinned-world suite checks that the Neovim is the derivation `neovimConfiguration` builds from the same module. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
caisson.nvf, in which caisson evaluates nvf's modules itself. This PR is based on #98 in the GitHub stack.The integration
An nvf configuration is a Neovim written as nvf modules. It is evaluated per system, once for each system in force, on the selected package set.
neovimConfigurationrunsevalModulesovermodules/modules.nix, on nixpkgs' library extended withlib.nvim, with the special argumentsself,inputsandmodulesPath.lib.nvimfrom the same nvf source.extendon the composed library extends nixpkgs' library and drops caisson's namespaces. So the composed library is laid over the extension again, keeping the extension's module system, exactly as the home-manager integration does forlib.hm.inputs.self.packages, soecosystemSrcis the nvf flake, resolved under the namenvf.A configuration is published as
nvfConfigurations.<system>.<name>, usingbySystemfrom #98. It is published in the shapeneovimConfigurationreturns:neovim,configandoptions. The pinned-world test checks that the Neovim is the derivationneovimConfigurationbuilds from the same module on the same package set.An nvf configuration declared inside a machine or a home is published with the others; the test declares one at the top, one inside a NixOS machine and one inside a home, and checks that all three are published. #104 gives the configuration above an nvf configuration a way to activate its Neovim, as a profile.
Checks
nix flake checkpasses, the eval-weight check included.🤖 Generated with Claude Code