fix(nixvim): pin nixd to shared nixpkgs to avoid duplicate LLVM #26

Merged
yuris merged 1 commit from fix/nixvim-nixd-pkg into main 2026-08-04 00:38:27 +00:00
Owner

Problem

nixvim pins its own internal nixpkgs snapshot. Its default servers.nixd derivation 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.nixd to 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: add package = pkgs.nixd under servers.nixd
## Problem nixvim pins its own internal nixpkgs snapshot. Its default `servers.nixd` derivation 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.nixd` to 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`: add `package = pkgs.nixd` under `servers.nixd`
nixvim pins its own nixpkgs internally; its default nixd drags in a second
LLVM toolchain (~588 MiB). Override servers.nixd.package = pkgs.nixd so it
shares the same store path as mesa and the rest of the system.
yuris merged commit 8a784da7a2 into main 2026-08-04 00:38:27 +00:00
yuris deleted branch fix/nixvim-nixd-pkg 2026-08-04 00:38:27 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
yuris/nixos-config!26
No description provided.