aboutsummaryrefslogtreecommitdiffstats
path: root/modules/home
diff options
context:
space:
mode:
authorGravatar Tom van der Lee <tom@vanderlee.io>2026-09-21 12:16:50 +0200
committerGravatar Tom van der Lee <tom@vanderlee.io>2026-09-21 12:16:50 +0200
commitf8e84b1e18d39632ead22b7c45fe4e97691bed29 (patch)
tree384a6f243894960d7fcd01738191976ace6dfd4b /modules/home
parent8fa7344435dbf81accb0751b48fc4bd776a201ff (diff)
downloaddesktop-flake-f8e84b1e18d39632ead22b7c45fe4e97691bed29.tar.gz
desktop-flake-f8e84b1e18d39632ead22b7c45fe4e97691bed29.tar.bz2
desktop-flake-f8e84b1e18d39632ead22b7c45fe4e97691bed29.zip
Fix Neovim plugins never loading via sideloadInitLua
home-manager's programs.neovim module always writes a non-empty ~/.config/nvim/init.lua, which permanently conflicts with Stow linking the dotfiles-owned lazy.nvim config to that same path - Stow skips the package and plugins never load. Setting sideloadInitLua = true frees that path for the dotfiles config to own exclusively. Also provisions a C compiler and tree-sitter (moved from dev-tools.nix) so natively- built plugins can compile on every platform. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BBSd4VBfoKHjE1HR3P8kmn
Diffstat (limited to 'modules/home')
-rw-r--r--modules/home/dev-tools.nix1
-rw-r--r--modules/home/editor.nix13
2 files changed, 13 insertions, 1 deletions
diff --git a/modules/home/dev-tools.nix b/modules/home/dev-tools.nix
index f98790e..f74c2b7 100644
--- a/modules/home/dev-tools.nix
+++ b/modules/home/dev-tools.nix
@@ -5,7 +5,6 @@
5 tmux 5 tmux
6 htop 6 htop
7 yq-go 7 yq-go
8 tree-sitter
9 docker 8 docker
10 docker-compose 9 docker-compose
11 kubectl 10 kubectl
diff --git a/modules/home/editor.nix b/modules/home/editor.nix
index b687552..413ca8f 100644
--- a/modules/home/editor.nix
+++ b/modules/home/editor.nix
@@ -1,7 +1,20 @@
1{ pkgs, ... }:
1{ 2{
2 programs.neovim = { 3 programs.neovim = {
3 enable = true; 4 enable = true;
4 defaultEditor = true; 5 defaultEditor = true;
5 vimAlias = true; 6 vimAlias = true;
7 # Never write ~/.config/nvim/init.lua ourselves - that path is owned by
8 # the externally-managed dotfiles config (lazy.nvim + plugins), stowed
9 # in separately. Without this, home-manager's own generated init.lua
10 # permanently conflicts with that stow package and it gets skipped.
11 sideloadInitLua = true;
6 }; 12 };
13
14 # tree-sitter (parser compilation) and a C compiler for natively-built
15 # Neovim plugins declared by the dotfiles-owned config above.
16 home.packages = with pkgs; [
17 tree-sitter
18 stdenv.cc
19 ];
7} 20}