I am using a vanilla NixOS tmpfiles experience from 24.05 and files are deleted after 10d. However directories are not cleared even though the files inside them are. I have some directories that are months old. How do I fix this?
useTmpfs
or cleanOnBoot
may be of interest. Though, useTmpfs
is inadvisable if you don’t have enough RAM to support said tmpfs while using nix, which is why it’s off by default.
EDIT: are you talking about /tmp
or systemd-tmpfiles
?
1 Like
Both, cleaning /tmp with systemd-tmpfiles but if there’s another way I’d be willing to do that. I only want to clear old files (10d) not everything on every boot.