Skip to content

Commit 611b5d5

Browse files
Update README.md to include troubleshooting for nix flakes
1 parent 2d56121 commit 611b5d5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

+10
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,16 @@ Anytime you enter the project your shell will automatically pick up the right de
9494

9595
If you find that `direnv` loads too slow, [there are faster loading strategies than the default in their wiki](https://github.com/direnv/direnv/wiki/Nix).
9696

97+
If you get an error like this:
98+
```
99+
error: experimental Nix feature 'flakes' is disabled; use '--extra-experimental-features flakes' to override
100+
```
101+
102+
Then you can fix it by enabling flakes as mentioned in the error message. Like so:
103+
```bash
104+
echo "experimental-features = nix-command flakes" | sudo tee -a /etc/nix/nix.conf > /dev/null
105+
```
106+
97107
### Working with upstream dependencies
98108

99109
We use `nix flake` to manage Nix dependencies.

0 commit comments

Comments
 (0)