[READ-ONLY] Mirror of https://github.com/usrrname/dotfiles. There was an attempt to store my configs
shovelware nix-pkgs nix
0

Configure Feed

Select the types of activity you want to include in your feed.

fix(nix): out-of-store symlink for nvim so Lazy can write lazy-lock

xdg.configFile."nvim".source copied the config into the read-only Nix
store, so LazyVim's :Lazy sync/update failed with "Permission denied"
writing lazy-lock.json. Use mkOutOfStoreSymlink to point ~/.config/nvim
at the live repo instead; also makes .lua edits live without a rebuild.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

Jen Chan (Jun 17, 2026, 12:13 PM EDT) 1b57b15e 50bd67dc

+10 -1
+10 -1
modules/nvim.nix
··· 1 + { config, ... }: 2 + 1 3 { 2 4 programs.neovim = { 3 5 enable = true; 4 6 defaultEditor = true; 5 7 }; 6 8 7 - xdg.configFile."nvim".source = ../common/nvim/.config/nvim; 9 + # Point ~/.config/nvim at the live repo rather than copying it into the 10 + # read-only Nix store. LazyVim needs to WRITE lazy-lock.json on 11 + # :Lazy sync/update/install, which fails with "Permission denied" when the 12 + # dir is a read-only store symlink. An out-of-store symlink also makes 13 + # .lua edits take effect on reload without a home-manager rebuild. 14 + xdg.configFile."nvim".source = 15 + config.lib.file.mkOutOfStoreSymlink 16 + "${config.home.homeDirectory}/.dotfiles/common/nvim/.config/nvim"; 8 17 }