diff options
-rw-r--r-- | ymir.nix | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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; |