diff --git a/README.org b/README.org index 178036b..9a56250 100644 --- a/README.org +++ b/README.org @@ -184,17 +184,17 @@ Import this shell with ~nix-shell /etc/dotfiles/shell.nix~. with pkgs; let - nixBin = writeShellScriptBin "nix" '' + myNix = writeShellScriptBin "nix" '' exec ${nixFlakes}/bin/nix --option experimental-features "nix-command flakes" "$@" ''; in mkShell { buildInputs = [ git + myNix ]; shellHook = '' - export FLAKE="$(pwd)" - export PATH="$FLAKE/bin:${nixBin}/bin:$PATH" + export DOTFILES="$(pwd)" ''; } #+END_SRC diff --git a/shell.nix b/shell.nix index 3aa61b0..4dfa709 100644 --- a/shell.nix +++ b/shell.nix @@ -4,16 +4,16 @@ with pkgs; let - nixBin = writeShellScriptBin "nix" '' + myNix = writeShellScriptBin "nix" '' exec ${nixFlakes}/bin/nix --option experimental-features "nix-command flakes" "$@" ''; in mkShell { buildInputs = [ git + myNix ]; shellHook = '' - export FLAKE="$(pwd)" - export PATH="$FLAKE/bin:${nixBin}/bin:$PATH" + export DOTFILES="$(pwd)" ''; }