summaryrefslogtreecommitdiff
path: root/ymir.nix
diff options
context:
space:
mode:
Diffstat (limited to 'ymir.nix')
-rw-r--r--ymir.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/ymir.nix b/ymir.nix
index f017c37e..b1252ba3 100644
--- a/ymir.nix
+++ b/ymir.nix
@@ -1196,7 +1196,10 @@ in rec {
1196 1196
1197 serviceConfig = { 1197 serviceConfig = {
1198 ExecStart = "${./snap.py} %I"; 1198 ExecStart = "${./snap.py} %I";
1199 ExecCondition = "${pkgs.stdenv.shell} -c \"! systemctl is-active 'borgbackup@*.service'\""; 1199 ExecCondition = "${pkgs.stdenv.shell} -c \"! systemctl is-active 'borgbackup@*.service' | ${pkgs.gnugrep}/bin/grep -q Activating\"";
1200 Environment = [
1201 "BORG_CACHE_DIR=/var/lib/borg/cache"
1202 ];
1200 Type = "oneshot"; 1203 Type = "oneshot";
1201 Nice = 15; 1204 Nice = 15;
1202 IOSchedulingClass = 2; 1205 IOSchedulingClass = 2;