about summary refs log tree commit diff
path: root/nixos/haruka
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2023-09-21 20:32:43 +0900
committersefidel <contact@sefidel.net>2023-09-24 10:12:51 +0900
commitf1dd96e79e387862b9c1035912ab99d166100fff (patch)
tree6fe574c2fe8959771567f64b124c183b6024fb98 /nixos/haruka
parent57892f421ab951cd26b57b79cf13d61eecf729f7 (diff)
downloadnixrc-f1dd96e79e387862b9c1035912ab99d166100fff.tar.gz
nixrc-f1dd96e79e387862b9c1035912ab99d166100fff.zip
feat(nixos/haruka): borgbackup: suppress ping output
Diffstat (limited to 'nixos/haruka')
-rw-r--r--nixos/haruka/configuration.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/nixos/haruka/configuration.nix b/nixos/haruka/configuration.nix
index b3ce7e0..521aace 100644
--- a/nixos/haruka/configuration.nix
+++ b/nixos/haruka/configuration.nix
@@ -181,7 +181,9 @@
   systemd.services.borgbackup-job-haruka-rolling = {
     preStart = lib.mkBefore ''
       # Wait until internet is reachable after resuming
-      until /run/wrappers/bin/ping rsync.net -c1 -q >/dev/null; do :; done
+      echo "Waiting until the remote is reachable..."
+      until /run/wrappers/bin/ping rsync.net -c1 -q >/dev/null 2>&1; do :; done
+      echo "Remote is reachable, exiting preStart"
     '';
   };