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/shell: added environment.shellFiles option #89943
Conversation
Update:it turns out that you only need |
I've modified a few packages to support the option,to both give an example and to give packages ready to be used |
While there are many packages that still need to be upgraded to this option,I still think this is a good start |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
Upended by #110762 |
Motivation for this change
This will allow to use standard packages to add to the init shell scripts whitout having to go lookinto said package to fing the specific file to include.However I still need #82743 to not make the module system choke on the all the attributes normal packages have.
The edit on thefuck,while still improving the shell load times,is more to check that the system is working.
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)