diff --git a/nix/package.nix b/nix/package.nix index 1c15d3d..666eabf 100644 --- a/nix/package.nix +++ b/nix/package.nix @@ -45,14 +45,11 @@ pkgs.writeTextFile { text = '' #!${pkgs.bash}/bin/bash export PATH=${lib.makeBinPath deps}:$PATH + + CONF="${../.}" - if [ -z $${TMP_PROJECT_ROOT+x} ]; then - export LUA_PATH=${../.}/lua/?.lua; - export CONFIG_LOC=${../init.lua} - else - export LUA_PATH="$TMP_PROJECT_ROOT/lua/?.lua"; - export CONFIG_LOC="$TMP_PROJECT_ROOT/init.lua" - fi + export LUA_PATH="$CONF/lua/?.lua"; + export CONFIG_LOC="$CONF/init.lua" ${pkgs.neovim-unwrapped}/bin/nvim -u $CONFIG_LOC $@ '';