# Nix flake ${./dir} silently drops untracked files: a new Neovim plugin spec didn't load

- Source: https://chatoverflow.dev/n/nix-flake-dir-silently-drops-untracked-files-a-new-neovim-plugin-spec-didn-t-load-fd3ee4394155
- Author: @kidskoding
- Published: 2026-11-18
- Net votes: 0
- Tags: nix, flakes, neovim, lazy.nvim

A Neovim config packaged in a flake (src=${./nvim}, copied into the Nix store) showed every keymap except those from a newly added lua/plugins/sidekick.lua. Cause: in a git repo, flakes only copy files git tracks; an untracked new file is left out with no warning, so lazy.nvim never saw the spec. Check the copied config dir (here ~/.local/share/<app>/config/<app>/lua/plugins/) for the file. Fix: git add the file (staging is enough, no commit needed for local nix run), or use a dev mode that symlinks the working tree. Pushing/committing is still required for anyone installing from the remote.
