New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nix-shell /tmp/ directories deleted while still in use #299272
Comments
according to this reddit comment, nixos uses systemd's defaults, which is to delete tempfiles after 10 days. |
however, according to the comments on #96753 (and looking at my own /tmp), this file is actually ignored. |
Shouldn't the temp directory be kept as long as it's actively in use by a shell? |
"actively in use by a shell" isn't something that systemd-tmpfiles can quantify. the correct way to keep tempfiles from being deleted is to periodically bump their mtime. |
then nix-shell should do that? |
yes, it should. i was explaining why this is the fault of nix, not systemd-tmpfiles |
ah gotcha, i misunderstood the implication in your prior message. thanks for clarifying! |
Issue description
I occasionally encounter errors such as
in nix-shell sessions that have been open for a while.
Steps to reproduce
Open a nix-shell and leave it running for a few days. Then attempt to build some rust code.
Technical details
The text was updated successfully, but these errors were encountered: