diff options
Diffstat (limited to 'openspec/changes/archive/2026-09-21-fix-mason-installer-deps/proposal.md')
| -rw-r--r-- | openspec/changes/archive/2026-09-21-fix-mason-installer-deps/proposal.md | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/openspec/changes/archive/2026-09-21-fix-mason-installer-deps/proposal.md b/openspec/changes/archive/2026-09-21-fix-mason-installer-deps/proposal.md new file mode 100644 index 0000000..5734f55 --- /dev/null +++ b/openspec/changes/archive/2026-09-21-fix-mason-installer-deps/proposal.md | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | ## Why | ||
| 2 | |||
| 3 | `mason.nvim` (managed by the externally-owned, Stow-linked Neovim dotfiles config) | ||
| 4 | fails to install several LSP/tooling packages on this flake's Home Manager profile: | ||
| 5 | `pyright`, `bash-language-server`, `yaml-language-server`, | ||
| 6 | `typescript-language-server`, `css-lsp`, and `html-lsp` fail because `npm` is not on | ||
| 7 | `PATH`; `debugpy` fails because no `python3`/`python` is on `PATH`; `terraform-ls` | ||
| 8 | fails because `unzip` is not on `PATH`. `programs.neovim.withPython3 = true` only | ||
| 9 | wires up Neovim's Python *provider* (pynvim) and does not put a `python3` binary on | ||
| 10 | `PATH`, so it does not cover this. `js-debug-adapter` and `lua-language-server` | ||
| 11 | already install successfully and need no change. | ||
| 12 | |||
| 13 | ## What Changes | ||
| 14 | |||
| 15 | - Provision `nodejs` (for `npm`), `python3`, and `unzip` on `PATH` via the shared | ||
| 16 | Home Manager profile, so `mason.nvim`'s installers can find the interpreters/tools | ||
| 17 | they shell out to. | ||
| 18 | |||
| 19 | ## Capabilities | ||
| 20 | |||
| 21 | ### New Capabilities | ||
| 22 | - `editor-toolchain`: The shared home-manager profile provisions the runtime | ||
| 23 | toolchain (interpreters, package managers, archive tools) that the externally | ||
| 24 | Stow-managed Neovim/mason.nvim config depends on to install and run LSP servers | ||
| 25 | and debug adapters, without home-manager owning any of that config itself. | ||
| 26 | |||
| 27 | ### Modified Capabilities | ||
| 28 | (none — `developer-environment` covers general most-used CLI tools, not the | ||
| 29 | Neovim/mason.nvim dependency contract, so a new capability is used instead of | ||
| 30 | overloading that one.) | ||
| 31 | |||
| 32 | ## Impact | ||
| 33 | |||
| 34 | - `modules/home/editor.nix`: extend the existing `home.packages` list (already used | ||
| 35 | for `tree-sitter`/`stdenv.cc`, the same "tools the dotfiles-owned nvim config | ||
| 36 | needs" pattern) with `nodejs`, `python3`, `unzip`. | ||
| 37 | - Applies to both Home Manager configs that import this module — `tom@linux` and | ||
| 38 | `tom@darwin` (per `flake.nix`) — covering all supported systems. | ||
| 39 | - No changes to the externally-managed dotfiles/Neovim Lua config itself. | ||
