I would previously just use /tmp
however this seems to persist after boot, it also seems to be have the disadvantage about literally writing to the disk as opposed to a ramdisk / tmpfs.
I thought perhaps /run/
but this seems (at least on my Nixos system) to be owned by the root
user.
Is there any recommended directory for this use case?