Every time I use #NixOS for something new I get a weird, inscrutable error message that I spend ages trying to work out. Every time it's because I've forgotten to `git add` something. There must be a better way?
@boffbowsh have you disabled the warning that Nix gives you when the git repo is dirty? It should be saying something like "warning: git working directory is dirty" if you have uncommitted (including untracked) changes.
My first course of action when things inexplicably explode is to make sure Nix can see all the files.
@jakehamilton I think once it's happened another 20 or 30 times I'll learn my lesson ;)
I do have that "tree is dirty" warning enabled, but I often test things without committing. The files only need to be in the staging area (`git add`), not necessarily committed to be used by Nix.