From 116d257fc427bdcbf215f71b462c4f62a6dd38fd Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 14 Jun 2023 02:10:29 +0200 Subject: [PATCH] cluster/services/attic: make dataDir writable --- cluster/services/attic/server.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cluster/services/attic/server.nix b/cluster/services/attic/server.nix index 7f88134..47f34d4 100644 --- a/cluster/services/attic/server.nix +++ b/cluster/services/attic/server.nix @@ -47,7 +47,10 @@ in groups.atticd = {}; }; - systemd.services.atticd.serviceConfig.DynamicUser = lib.mkForce false; + systemd.services.atticd.serviceConfig = { + DynamicUser = lib.mkForce false; + ReadWritePaths = [ dataDir ]; + }; services.nginx.virtualHosts."cache-api.${tools.meta.domain}" = tools.nginx.vhosts.proxy config.links.atticServer.url; }