fix(nixvim): pin nixd to shared nixpkgs to avoid duplicate LLVM #26
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/nixvim-nixd-pkg"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
nixvim pins its own internal nixpkgs snapshot. Its default
servers.nixdderivation pulls nixd from that snapshot, which drags in a second LLVM toolchain (~588 MiB) alongside the one already present for mesa and the rest of the system.Fix
Set
servers.nixd.package = pkgs.nixdto use the nixd already in the system's nixpkgs closure. Both resolve to the same nixd version; the only difference is the LLVM dependency chain shared vs. duplicated.Files
modules/dev/nixvim.nix: addpackage = pkgs.nixdunderservers.nixd