Nix Flake error: path '/nix/store/--/flake.nix' does not exist
Fri, Jun 13, 2025 in /coder/I’ve noticed a ‘path _ does not exist’ quirk when copying the flake.nix
file from one project to another
I thought that I could replicate the nix-flake defined environment of one folder(project) by copying flake.nix
and .envrc
into a new folder. When I do that, I’m asked to run direnv allow
on the new folder, but then something weird happens; you’ll get an error like this:
direnv: loading ~/proj/project-name/.envrc
direnv: using flake .
error: path '/nix/store/0cc..nm8-source/flake.nix' does not exist