diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-11-01 22:00:39 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-11-01 22:00:39 +0100 |
commit | a398d464a8d2c09e9fd71d57ad0ccd933a6ed2c8 (patch) | |
tree | 102036d5e7d23d1f6273209c6069716dce268b3c /ymir.nix | |
parent | 44fc7593ead3e1a9f3be501877c4f1f890e6c816 (diff) | |
download | nixos-a398d464a8d2c09e9fd71d57ad0ccd933a6ed2c8.tar nixos-a398d464a8d2c09e9fd71d57ad0ccd933a6ed2c8.tar.gz nixos-a398d464a8d2c09e9fd71d57ad0ccd933a6ed2c8.tar.bz2 nixos-a398d464a8d2c09e9fd71d57ad0ccd933a6ed2c8.tar.xz nixos-a398d464a8d2c09e9fd71d57ad0ccd933a6ed2c8.zip |
...
Diffstat (limited to 'ymir.nix')
-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; |