-
-
Notifications
You must be signed in to change notification settings - Fork 13.9k
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
nixos/direnv: init #241528
nixos/direnv: init #241528
Conversation
FWIW I have some extra code in my config's module for direnv to source the user's configuration also (which direnv normally does), might be worth including here. This is what configuration I install (in /etc/xdg/direnv as opposed to /etc/direnv):
|
I can't see any negatives to this I'll add it |
This comment was marked as resolved.
This comment was marked as resolved.
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.
Other than one (admittedly rather nitpicky) concern re a comment: this looks like a very good approach that addresses every problem I have with #192667!
9e11556
to
e1678e6
Compare
5a39574
to
57c37f9
Compare
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.
Now that you added a package
attribute in the config, you can use it as such...
Does the package gets added to automatically to systemPackages? |
No it doesn't but your PR doesn't do it either. |
Yeah removed it with the last force push, brain fart |
Then you just have to use |
Alright pushed changes |
I finally figured out why fish wasn't working with my conditional loading idea: so I added a I also added options to disable and set the package of |
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.
A minor syntax change and I think it's good to go.
Changes pushed! |
Closes #192667
Description of changes
There really should be a simple direnv module and #192667 has become quite stale
So I took most of the criticisms and applied them along with a few bits of my own
I would like to make an option to conditionally load based on being in a nix shell,
but alas i couldn't get
fish
to work correctlyThings done