diff --git a/configs/direnv.nix b/configs/direnv.nix index 7432205..3ad29ee 100644 --- a/configs/direnv.nix +++ b/configs/direnv.nix @@ -7,14 +7,14 @@ let nixify = pkgs.writers.writeDashBin "nixify" '' direnv allow fi if [ ! -e shell.nix ]; then - cat > default.nix <<'EOF' + cat > shell.nix <<'EOF' { pkgs ? import {} }: pkgs.mkShell { buildInputs = with pkgs; []; - shellHook = "export HISTFILE=${toString ./.history}"; + shellHook = "export HISTFILE=''${toString ./.history}"; } EOF - ''${EDITOR:-vim} default.nix + ''${EDITOR:-vim} shell.nix fi ''; in {