From e564f01583cbc9e9182bfe3ceca734e8680d8d2f Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Thu, 14 May 2026 11:43:18 +0100 Subject: revert(nvim)+fix(remote-dev): keep Mason authoritative, give it cargo+rustc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit User policy: Mason should install everything it lists regardless of host-provided versions. Revert the PATH-filtering wrapper around ensure_installed (b2f129e) — back to a plain table literal. For shellharden specifically, Mason's only install source is `cargo install`. The Arch host has cargo via base-devel/rustup; the VM previously didn't, so Mason errored "ENOENT cargo". Add `cargo` and `rustc` to the remote-dev nix profile so Mason can build it on the VM too. Drop the shellharden package from home.nix — Mason owns it now, no more provider competition with the nix-profile binary. --- remote-dev/home.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'remote-dev') diff --git a/remote-dev/home.nix b/remote-dev/home.nix index c5dfcc7..4aeff8a 100644 --- a/remote-dev/home.nix +++ b/remote-dev/home.nix @@ -97,10 +97,12 @@ in ln -s ${pkgs.python311}/bin/python3.11 $out/bin/python3.11 '') - # Mason fallbacks: Mason's pip/cargo installers can't run on this VM - # under our leaf-tools policy, so we provide these binaries on PATH and - # let nvim/Mason find them there instead of trying to build them. - shellharden + # Rust toolchain for Mason packages whose only install source is + # `cargo install` (shellharden). The host has these via the Arch + # package manager; on the VM Mason needs cargo+rustc on PATH or it + # bails with ENOENT. + cargo + rustc # AI coding agents claude-code -- cgit v1.3.1