From 9ebba0f74dccdff47fa56ff7dfc0736b2ad00f61 Mon Sep 17 00:00:00 2001 From: KFears Date: Sat, 28 Sep 2024 17:40:11 +0400 Subject: [PATCH] fix(gerrit): tmpdir-related failure --- services/gerrit/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/gerrit/default.nix b/services/gerrit/default.nix index 4102368..ec9721b 100644 --- a/services/gerrit/default.nix +++ b/services/gerrit/default.nix @@ -112,6 +112,7 @@ in pyroscope.java "java" { targets = discovery.relabel.java.output forward_to = [pyroscope.write.production.receiver] + tmp_dir = "/run/alloy" // The default "/tmp" can be cleaned up and provoke failure, see #108 profiling_config { interval = "60s" alloc = "512k" @@ -312,6 +313,7 @@ in # setting for the Gerrit service to be disabled and reuse the # existing 'git' user. DynamicUser = lib.mkForce false; + RuntimeDirectory = "alloy"; User = "git"; Group = "git"; };