nix-community / nix-direnv

A fast, persistent use_nix/use_flake implementation for direnv [maintainer=@Mic92 / @bbenne10]
MIT License
1.9k stars 106 forks source link

Track files referenced by `--file` #535

Open viperML opened 4 days ago

viperML commented 4 days ago

use_flake, which uses nix print-dev-env accepts an installable, which can be:

Additionally, if using a -f file.nix, it won't detect changes on the file automatically.

Proposal

Mic92 commented 4 days ago

Sorry, but that's too late. Breaking this interface would cause too much churn throughout the ecosystem and we also want to be compatible direnv's own implementation, which might come from some old debian/centos installation. In the majority of normal use cases it will be a flake so the name is not too bad. People also are more likely to know what a flake is compared to what a installable means.

Mic92 commented 4 days ago

We can actually support --file tracking though.