viperML / nh

Yet another nix cli helper
European Union Public License 1.2
989 stars 35 forks source link

direnv sets gcroots to a directory not in nh's regex #114

Open bestlem opened 5 months ago

bestlem commented 5 months ago

You can change where direnv puts its cached files. https://github.com/direnv/direnv/wiki/Customizing-cache-location

The examples I have seen end up in ${XDG_CACHE_HOME}/direnv/layouts

Can the regex nh look at be extended to cover this,

viperML commented 5 months ago

Yes, here: https://github.com/viperML/nh/blob/127a23c82aa41091e97466092d2547c08c2a9a9d/src/clean.rs#L94

Ideally we add a new CLI flag to nh clean such that the user can pass their own extra rules, e.g.

nh clean all -R "my rule" -R "my rule2"