I am struggling with the mentioned error regarding flakes. My nix configuration is formatted as a flake project and stored in a git repository (very typical, I would say).
Installing a package into a profile does work if I use flake references like .#package
or git+ssh://myserver/repo#package
.
In contrast, if I use path:/home/me/repo#package
- I see
$ nix profile install 'path:/home/grwlf/proj/nixcfg#env-pureblade-grwlf'
error: 'flake.nix' file of flake 'path:/home/grwlf/proj/nixcfg?lastModified=1648124942&narHash=sha256-Ng/AwwzN2yFcnzf8J4clwuJzc2HS2ADnlCTdzP3Twic%3D' escapes from '/nix/store/cnv56rjfhqp6ch9qafgkyac93759jrxp-source'
But what does it mean? (I have double checked: flake.nix does exist in git). And most importantly, how can I know more details about this situation?
I would like to add my flake to the local flake registry, so I really need to use the path:...
style there.