Open mmlb opened 2 years ago
I've worked around this for now by hacking my direnvrc to:
use_nix() {
lorri watch --once &>/dev/null
eval "$(lorri direnv)"
}
but this is probably going to not be great (blocking direnv in the foreground?)
This may be less blocky
use_nix() {
[[ ${NIXPKGS_ALLOW_UNFREE:-} == 1 ]] && lorri watch --once &>/dev/null
eval "$(lorri direnv)"
}
Describe the bug
While using direnv and cd-ing into a directory lorri fails to build due to an unfree derivation even though I have NIXPKGS_ALLOW_UNFREE=1 set.
To Reproduce Steps to reproduce the behavior:
NIXPKGS_ALLOW_UNFREE=1 lorri direnv
journalctl --user -fu lorri.service
NIXPKGS_ALLOW_UNFREE=1 lorri watch --once
Expected behavior
I expected
lorri direnv
to seeNIXPKGS_ALLOW_UNFREE=1
in the env when being run and thus correctly building my shell.nixMetadata
Additional context
Test shell.nix I used for the
lorri info
above: