I am trying to understand why the self input seems to behave differently in my flake depending on how I call it. I have created a reproducible example here:
The README.md explains that when flake.nix is in a sub directory of a git repository the path of self is different depending on how it is called.
I would greatly appreciate any help in understanding what I’m missing
I’m guessing getFlake has different behaviour than referring to . with :lf. One loads the flake as part of a directory and other recognizes it is a git repository, so it bases everything on the root of the repo?
I do agree, this is quite confusing. Might even be good to open an issue about this on github.com/nixos/nix ?