summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-11-01 22:00:39 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2022-11-01 22:00:39 +0100
commita398d464a8d2c09e9fd71d57ad0ccd933a6ed2c8 (patch)
tree102036d5e7d23d1f6273209c6069716dce268b3c
parent44fc7593ead3e1a9f3be501877c4f1f890e6c816 (diff)
downloadnixos-a398d464a8d2c09e9fd71d57ad0ccd933a6ed2c8.tar
nixos-a398d464a8d2c09e9fd71d57ad0ccd933a6ed2c8.tar.gz
nixos-a398d464a8d2c09e9fd71d57ad0ccd933a6ed2c8.tar.bz2
nixos-a398d464a8d2c09e9fd71d57ad0ccd933a6ed2c8.tar.xz
nixos-a398d464a8d2c09e9fd71d57ad0ccd933a6ed2c8.zip
...
-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;