diff --git a/flake.nix b/flake.nix index db3af97..106faea 100644 --- a/flake.nix +++ b/flake.nix @@ -166,9 +166,11 @@ export STARHAVEN_DEV_PDS_BIN="${devPds}/bin/starhaven-dev-pds" # Local PDS + PLC directory runs in the background - dev_pds_pidfile=/tmp/starhaven-dev-pds.pid + dev_pds_dir="$HOME/.local/share/starhaven-dev-pds" + mkdir -p "$dev_pds_dir" + dev_pds_pidfile="$dev_pds_dir/pds.pid" if ! kill -0 "$(cat "$dev_pds_pidfile" 2>/dev/null)" 2>/dev/null; then - ${devPds}/bin/starhaven-dev-pds &> /tmp/starhaven-dev-pds.log 3>&- & + TMPDIR="$dev_pds_dir" ${devPds}/bin/starhaven-dev-pds &> "$dev_pds_dir/pds.log" 3>&- & echo $! > "$dev_pds_pidfile" disown fi