From ca7ef26e9985f3e66a0cb3a268c98d9205a4c2db Mon Sep 17 00:00:00 2001 From: kdam0 Date: Wed, 3 Jul 2024 21:24:14 -0400 Subject: inital commit --- README.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 README.md (limited to 'README.md') 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 +``` -- cgit v1.2.3