aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-05-20 13:56:10 +0100
committerLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-05-20 13:56:10 +0100
commit40d8fd056bef4526acbe38a9b6ff98fc0c3fd8c9 (patch)
treea6817a58228d383593e5c0f61779bd25846c4dfd
parent52fe0b813d3081d7bcb394a35806d13258827453 (diff)
downloaddotfiles-40d8fd056bef4526acbe38a9b6ff98fc0c3fd8c9.tar.gz
dotfiles-40d8fd056bef4526acbe38a9b6ff98fc0c3fd8c9.tar.bz2
dotfiles-40d8fd056bef4526acbe38a9b6ff98fc0c3fd8c9.zip
fix(nix,nvim): drop gh-actions-language-server (not in nixpkgs); export USER in nix-switch
- gh-actions-language-server is an npm package (lttb/gh-actions-language-server) not packaged in nixpkgs. Removed from nix/common.nix and from the vim.lsp.enable list in dot_config/nvim/lua/plugins/lsp.lua. Restore later via a per-project flake.nix if working on a workflows-heavy repo. - just runs recipes with a sanitized env where $USER may be unset; home-manager's activation script dereferences it unconditionally and fails with 'USER: unbound variable'. Export USER (and HOME for symmetry) at the top of the nix-switch recipe.
-rw-r--r--dot_config/nvim/lua/plugins/lsp.lua1
-rw-r--r--justfile4
-rw-r--r--nix/common.nix1
3 files changed, 4 insertions, 2 deletions
diff --git a/dot_config/nvim/lua/plugins/lsp.lua b/dot_config/nvim/lua/plugins/lsp.lua
index 5039d04..98f0f66 100644
--- a/dot_config/nvim/lua/plugins/lsp.lua
+++ b/dot_config/nvim/lua/plugins/lsp.lua
@@ -21,7 +21,6 @@ vim.lsp.enable({
"cssls",
"dockerls",
"eslint",
- "gh_actions_ls",
"html",
"jsonls",
"lua_ls",
diff --git a/justfile b/justfile
index fa80823..8af74bb 100644
--- a/justfile
+++ b/justfile
@@ -30,6 +30,10 @@ nix-switch:
echo "nix not installed; skipping home-manager switch" >&2
exit 0
fi
+ # home-manager's activation script references $USER unconditionally;
+ # just runs recipes with a sanitized env that may drop it.
+ export USER="${USER:-$(id -un)}"
+ export HOME="${HOME:-$(getent passwd "$USER" | cut -d: -f6)}"
profile=host
[ -f /etc/os-release ] && . /etc/os-release || true
case "${ID:-}" in
diff --git a/nix/common.nix b/nix/common.nix
index 46fa369..55e2d21 100644
--- a/nix/common.nix
+++ b/nix/common.nix
@@ -145,7 +145,6 @@ in
basedpyright
bash-language-server
dockerfile-language-server-nodejs
- gh-actions-language-server
just-lsp
lua-language-server
neocmakelsp