this post was submitted on 19 Nov 2023
1 points (100.0% liked)

Nix

1 readers
1 users here now

founded 1 year ago
MODERATORS
 

I'm currently trying to get comfortable on NixOS on my laptop before switching over to it from Arch on my desktop, and I've noticed that there's a .keep file in the ~/.cache directory. I normally wouldn't care about it, except that my XDG_CACHE_HOME isn't ~/.cache, but rather set to $XDG_STATE_HOME/cache which is ~/.var/cache (to mirror how cache is in /var/cache).

So what even is the .keep file, and how do I make it go to my XDG_CACHE_HOME to stop it from cluttering up my home directory?

you are viewing a single comment's thread
view the rest of the comments
[–] sun_is_ra@sh.itjust.works 1 points 10 months ago

.keep file is meant to tell you to keep that directory even if its empty. You can delete it if you knoow what you are doing