From 4e6d25a51bb3035af7db54cc8f7fcac23e9467dc Mon Sep 17 00:00:00 2001 From: Judson Lester Date: Tue, 20 Feb 2024 12:07:21 -0800 Subject: [PATCH] lorri: systemd allow access to cache directories Some nix builds require RW access to `.cache/nix` and `.cache/lorri`. --- modules/services/lorri.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/services/lorri.nix b/modules/services/lorri.nix index f782ff880..533a53441 100644 --- a/modules/services/lorri.nix +++ b/modules/services/lorri.nix @@ -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" ];