From a398d464a8d2c09e9fd71d57ad0ccd933a6ed2c8 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 1 Nov 2022 22:00:39 +0100 Subject: ... --- ymir.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ymir.nix b/ymir.nix index f017c37e..b1252ba3 100644 --- a/ymir.nix +++ b/ymir.nix @@ -1196,7 +1196,10 @@ in rec { serviceConfig = { ExecStart = "${./snap.py} %I"; - ExecCondition = "${pkgs.stdenv.shell} -c \"! systemctl is-active 'borgbackup@*.service'\""; + ExecCondition = "${pkgs.stdenv.shell} -c \"! systemctl is-active 'borgbackup@*.service' | ${pkgs.gnugrep}/bin/grep -q Activating\""; + Environment = [ + "BORG_CACHE_DIR=/var/lib/borg/cache" + ]; Type = "oneshot"; Nice = 15; IOSchedulingClass = 2; -- cgit v1.2.3