Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
use nix

# following the advice from https://github.com/direnv/direnv/wiki/.envrc-Boilerplate
# load developer's own local .env

dotenv_if_exists || direnv status # https://direnv.net/man/direnv-stdlib.1.html
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if I want to load variables before use nix that influence how Nix will operate?

Copy link
Contributor Author

@hellwolf hellwolf Jul 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know... maybe you shouldn't? that's probably the bad "side effects" and can give surprises.

I think the upstream decides to remove the .envrc after all. So I guess, we are gonna be back to the previous status quo.

I actually wouldn't mind much, and started to commit .envrc in other projects after I saw the wki page on direnv...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Setting something like NIXPKGS_ALLOW_UNFREE could be useful to some before Nix is invoked on a per-project basis. This does not seem weird.