New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lorri: add direnv as service dependency #85144
Conversation
The readme at https://github.com/target/lorri says: Enable the daemon service. Set services.lorri.enable = true; in your NixOS configuration.nix or your home-manager home.nix. This will automatically install both the lorri command and direnv (both required for the nextsteps). However, it was not true of direnv. It wasn't getting installed. Now it will.
I didn't test this at all: this is only a drive-by PR made on Github. @Profpatsch said it would be ok. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Personally, I'm against this change as some users may wish to use lorri without direnv which should be totally legit. Perhaps lorri should update their docs.
I have to agree with @doronbehar , although the application has support for direnv, It should not bring the package into the environment. Not to mention this doesn't even correctly install direnv as direnv requires additional steps for it to work https://github.com/direnv/direnv/blob/master/docs/hook.md#bash |
Please file a PR upstream at lorri to fix the documentation. |
The primary use-case of lorri is usage with |
with home-manager, you can do:
and you get the desired effect |
Direnv isn't and shouldn't be automatially installed on installing lorri, per NixOS/nixpkgs#85144
Well, I learnt something! Thanks folks, in particular @flokli. I followed your advice: |
Direnv isn't and shouldn't be automatially installed on installing lorri, per NixOS/nixpkgs#85144
The readme at https://github.com/target/lorri says:
Enable the daemon service. Set services.lorri.enable = true; in your NixOS configuration.nix or your home-manager home.nix.
This will automatically install both the lorri command and direnv (both required for the nextsteps).
However, it was not true of direnv. It wasn't getting installed. Now it will.
Motivation for this change
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)