1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-10 21:29:48 +01:00

lorri: systemd allow access to cache directories

Some nix builds require RW access to `.cache/nix` and `.cache/lorri`.
This commit is contained in:
Judson Lester 2024-02-20 12:07:21 -08:00 committed by Mikilio
parent 9aea11023d
commit 7f1470c203
No known key found for this signature in database
GPG key ID: 5B2F1A890CF33F3F

View file

@ -7,7 +7,7 @@ let
cfg = config.services.lorri;
in {
meta.maintainers = [ maintainers.gerschtli ];
meta.maintainers = [ maintainers.gerschtli maintainers.nyarly ];
options.services.lorri = {
enable = mkEnableOption "lorri build daemon";
@ -55,6 +55,10 @@ in {
ReadWritePaths = [
# /run/user/1000 for the socket
"%t"
# Needs to update own cache
"%C/lorri"
# Needs %C/nix/fetcher-cache-v1.sqlite
"%C/nix"
"/nix/var/nix/gcroots/per-user/%u"
];
CacheDirectory = [ "lorri" ];