diff options
| author | kdam0 <me@kumardamani.net> | 2024-07-04 01:24:14 +0000 |
|---|---|---|
| committer | kdam0 <me@kumardamani.net> | 2024-07-04 01:24:14 +0000 |
| commit | ca7ef26e9985f3e66a0cb3a268c98d9205a4c2db (patch) | |
| tree | ad9d961ce87172c43264160dc4f680861f437562 /README.md | |
inital commit
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..8487ae3 --- /dev/null +++ b/README.md @@ -0,0 +1,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 +``` |
