i initialized a git repo in my /etc/nixos
folder. after that, i couldnt rebuild or update my flake anymore. why is this?
nix won’t recognise files that aren’t at least staged. Try git add .
and then rebuild again.
oh yeah, works fine. thanks.
Note, this only applies to flakes, and only to files that were previously never added to the git repo
1 Like