Commit graph

76 commits

Author SHA1 Message Date
Jörg Thalheim
246a0fbe3a
REAMDE: link to other projects, improve evaluation cache invalidation 2021-01-10 08:32:07 +01:00
Jörg Thalheim
a5d469806c
add source_url installation 2020-12-31 07:55:12 +01:00
Jörg Thalheim
e19d62fc02
use_flake: add gcroot for inputs 2020-12-25 17:29:44 +01:00
Jörg Thalheim
b54e2f2c4b
README: fix usuage example 2020-10-25 20:08:08 +00:00
Erik Arvstedt
c9f9be0a46 README: minor formatting/wording fixes 2020-10-24 08:46:43 +02:00
Erik Arvstedt
2aa433e90e README: fix direnv_layout_dir setup
The static setup of `direnv_layout_dir` in `direnvrc` leads to the
creation of separate layout dirs and nix shell caches for each
subdirectory of a project.
Reason: When `direnvrc` is evaluated, `PWD` has the value of the calling
user's shell, instead of pointing to the project directory (the dir containing `.envrc`).

Fix this by dynamically evaluating `$PWD` in a function.
Dynamic evaluation is also required when `.envrc` includes (via `source_*`) `.envrc`
files from other projects because `$PWD` changes in this case.

Cache the computed layout paths because `shasum` is
fairly expensive (13 ms on my desktop system).
2020-10-23 15:30:52 +02:00
DavHau
35f310f1a2
readme: add direnv to systemPackages in configuration.nix 2020-09-26 14:10:55 +07:00
Jörg Thalheim
c28d4ef615
README: restructure installation section 2020-09-26 08:04:10 +02:00
Manu S Ajith
e8c54c3f64
Fix typo in readme. (#39) 2020-09-18 16:49:14 +02:00
Jörg Thalheim
682f750d0a
README: update advantages of nix-direnv over lorri 2020-08-15 09:59:01 +01:00
Jörg Thalheim
67eb84ddb5
README: document how to trigger re-evaluation 2020-08-15 09:54:34 +01:00
Jörg Thalheim
666edff7fe
README.md: improve FAQ 2020-08-13 20:53:12 +01:00
Jörg Thalheim
8a397b7eb2
improve documentation for use_flake 2020-08-11 07:08:36 +01:00
Jörg Thalheim
d1bf45b1bf
add usage example 2020-08-10 09:56:24 +01:00
Steve Purcell
9149cf8985
README updates
- Make it clearer this is a re-implementation of `use_nix`
- Grammar/spelling fixes
- Clarifications
2020-06-30 08:55:11 +12:00
pca006132
0d42dad65a
updated installation guide for home-manager 2020-06-07 17:32:14 +08:00
Vincent Breitmoser
b22d941231
readme: update home-manager instructions
Update readme with a more home-managery way of installing nix-direnv in home-manager.
2020-05-25 23:44:14 +02:00
Jörg Thalheim
268a02754f
update installations instructions 2020-05-11 09:20:15 +01:00
Jörg Thalheim
f29fc205ce
README.md: improve documentation 2020-04-10 13:44:40 +01:00
Jörg Thalheim
82711395ac
README: mention lorri
fixes #9
2020-04-09 06:32:05 +01:00
Jörg Thalheim
b366328f74
README.md: add test badge 2020-04-01 16:17:18 +01:00
Jörg Thalheim
e704944ee0
Document compatibility problems 2020-03-11 10:32:13 +00:00
Matt Snider
796db38742
Update README.md with nix.conf changes needed for persistent derivations
It appears that the derivations produced by nix-direnv are removed when running nix's garbage collection. Troubleshooting this issue led me to a git issue in the NixOS/nix repo [1]. Enabling both `keep-derivations` and `keep-outputs` worked for me as recommended, and now nix-direnv is working.

[1]: https://github.com/NixOS/nix/issues/2208
2020-03-05 23:37:55 +01:00
Jörg Thalheim
d0dc1479ea
README.md: improve language 2019-09-27 09:06:43 +01:00
Jörg Thalheim
f678ba557b
add direnvrc 2019-09-27 09:03:55 +01:00
Jörg Thalheim
eb393f732a
Initial commit 2019-09-27 08:43:48 +01:00