aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: 8487ae3ebb7869ede603bb3a7fa7780b22eef19b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Install `nix`:
```
# linux
sh <(curl -L https://nixos.org/nix/install) --daemon
# wsl2
sh <(curl -L https://nixos.org/nix/install) --no-daemon
# macos
sh <(curl -L https://nixos.org/nix/install)
```

Enable `flakes` support by adding to `$HOME/.config/nix/nix.conf`:
```
experimental-features = nix-command flakes
```

Then, install `direnv`:
```
# debian
sudo apt install direnv
# macos
brew install direnv
```

Hook `direnv` to your end of your shell rc file:
```
# for bash
eval "$(direnv hook bash)"
# for zsh
eval "$(direnv hook zsh)"
```

Enable automatic nix shell activation for this dir:
```
direnv allow
```