diff options
| author | 2026-05-14 11:43:18 +0100 | |
|---|---|---|
| committer | 2026-05-14 11:43:18 +0100 | |
| commit | e564f01583cbc9e9182bfe3ceca734e8680d8d2f (patch) | |
| tree | e53c954a5edd8cc8dc9843e3223e40c60bca4d72 /remote-dev | |
| parent | 0a0d087b2125b6c7b6461d58f57265bc56b3b22b (diff) | |
| download | dotfiles-e564f01583cbc9e9182bfe3ceca734e8680d8d2f.tar.gz dotfiles-e564f01583cbc9e9182bfe3ceca734e8680d8d2f.tar.bz2 dotfiles-e564f01583cbc9e9182bfe3ceca734e8680d8d2f.zip | |
revert(nvim)+fix(remote-dev): keep Mason authoritative, give it cargo+rustc
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.
Diffstat (limited to 'remote-dev')
| -rw-r--r-- | remote-dev/home.nix | 10 |
1 files changed, 6 insertions, 4 deletions
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 |
