From e66aa35ea314f522a2cdfaebdacf87894a44bd04 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Wed, 20 May 2026 13:56:09 +0100 Subject: feat(nix): add LSPs/formatters/linters/DAPs to common.nix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replaces Mason entirely (phase p6 of the nix migration will rip out mason-tool-installer and friends). The set tracks the previous ensure_installed list in nvim's lsp.lua, with five niche tools dropped per the migration plan: - groovy-language-server, npm-groovy-lint - nginx-language-server, nginx-config-formatter - systemdlint systemd-lsp is renamed to systemd-language-server (the nixpkgs attr name). codelldb is replaced by lldb-dap (upstream successor, ships with pkgs.lldb); dap configs switch in phase p6. Drops jre, basedpyright, cargo, rustc from vm.nix — they only existed to work around Mason quirks on Ubuntu 20.04 (uv-python wheel incompatibility, source-build needs). With Mason gone, basedpyright comes from nixpkgs cleanly on both profiles. Phase 5 of the nix-on-host migration plan. --- nix/vm.nix | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'nix/vm.nix') diff --git a/nix/vm.nix b/nix/vm.nix index d003b6e..7445b7b 100644 --- a/nix/vm.nix +++ b/nix/vm.nix @@ -18,18 +18,6 @@ }; home.packages = with pkgs; [ - # ── Mason-driven LSP carve-outs (removed by phase p6 once Mason is - # gone and LSPs come from common.nix directly). Kept here for - # now so the VM keeps working between phases. ─────────────────────── - jre # Mason's groovy-language-server (headless Java) - basedpyright # Mason's pypi distro can't install on Ubuntu 20.04 - # (manylinux_2_28 wheels, uv's python rejects) - # Rust toolchain for Mason packages whose only install source is - # `cargo install` (shellharden). The Arch host has these via pacman; - # on the VM Mason needs cargo+rustc on PATH or it bails with ENOENT. - cargo - rustc - # ── Rootless podman ───────────────────────────────────────────────────── # The nix `podman` is wrapped to find these helpers via /nix/store # paths, so we don't need to write a containers.conf for -- cgit v1.3.1