The Lix daemon stores caches in /root/.cache #634

Closed
opened 2025-01-22 01:45:15 +00:00 by jade · 1 comment
Owner

This is obviously a massive FHS violation and highly surprising. The daemon has been doing this forever though, it's just absurd. It should either be in /nix/var/cache/nix OR in /var/cache. The former is probably the only one we are actually able to do.

Note that if we fix this it will be a little surprising if occasionally running commands in the local store with CppNix daemons or nix processes running as root.

This is obviously a massive FHS violation and highly surprising. The daemon has been doing this forever though, it's just absurd. It should either be in /nix/var/cache/nix OR in /var/cache. The former is probably the only one we are actually able to do. Note that if we fix this it will be a little surprising if occasionally running commands in the local store with CppNix daemons or nix processes running as root.
Member

This issue was mentioned on Gerrit on the following CLs:

  • commit message in cl/4671 ("libutil/users: support service cache directories")
  • comment in cl/5346 ("release: release notes for 2.95.0")
<!-- GERRIT_LINKBOT: {"cls": [{"backlink": "https://gerrit.lix.systems/c/lix/+/4671", "number": 4671, "kind": "commit message"}, {"backlink": "https://gerrit.lix.systems/c/lix/+/5346", "number": 5346, "kind": "comment"}], "cl_meta": {"4671": {"change_title": "libutil/users: support service cache directories"}, "5346": {"change_title": "release: release notes for 2.95.0"}}} --> This issue was mentioned on Gerrit on the following CLs: * commit message in [cl/4671](https://gerrit.lix.systems/c/lix/+/4671) ("libutil/users: support service cache directories") * comment in [cl/5346](https://gerrit.lix.systems/c/lix/+/5346) ("release: release notes for 2.95.0")
pennae added this to the 2.95 milestone 2025-12-01 14:51:30 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lix-project/lix#634
No description provided.