From b534a4e6c85b778c4f38749869d458504228aeca 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 8e79b04..f8a1c42 100644 --- a/services/gerrit/default.nix +++ b/services/gerrit/default.nix @@ -113,6 +113,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" @@ -315,6 +316,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"; }; -- 2.44.1