Skip to content

Commit adeab6c

Browse files
fix(template): clarify direnv revoke for reuse
Signed-off-by: Cameron Smith <cameron.ray.smith@gmail.com>
1 parent 660ec17 commit adeab6c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

nix/modules/template.nix

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@
88
welcomeText = ''
99
Welcome to the python-nix-template!
1010
11-
Don't forget to `cd` into your new project directory.
11+
NOTE: If you're reusing a preexisting directory for PROJECT_DIRECTORY you
12+
may need to run `direnv revoke $PROJECT_DIRECTORY` to unload the environment
13+
before proceeding.
14+
15+
Otherwise, don't forget to `cd` into your new project directory.
1216
1317
If you do not have nix and direnv installed, check
1418
@@ -21,6 +25,8 @@
2125
2226
In order to recognize the `flake.nix` and associated files, create a git
2327
repository, stage the files, and run `direnv allow` to load the environment.
28+
You might need to run `direnv revoke` first if you're reusing a directory
29+
where you have previously run `direnv allow`.
2430
2531
You can copy and paste
2632

0 commit comments

Comments
 (0)