about summary refs log tree commit diff
path: root/nixos/alpha
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2023-09-21 20:12:31 +0900
committersefidel <contact@sefidel.net>2023-09-24 10:12:49 +0900
commit57892f421ab951cd26b57b79cf13d61eecf729f7 (patch)
treebeaabd0af0a93abb03725f1c8201b509899ee4a8 /nixos/alpha
parent2eb4b80e9e167a69b3c450934b0fb60c18aca8ec (diff)
downloadnixrc-57892f421ab951cd26b57b79cf13d61eecf729f7.tar.gz
nixrc-57892f421ab951cd26b57b79cf13d61eecf729f7.zip
feat(nixos/alpha): borgbackup: suppress ping output
Diffstat (limited to 'nixos/alpha')
-rw-r--r--nixos/alpha/configuration.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/nixos/alpha/configuration.nix b/nixos/alpha/configuration.nix
index 5af387e..6fac8e7 100644
--- a/nixos/alpha/configuration.nix
+++ b/nixos/alpha/configuration.nix
@@ -177,7 +177,9 @@
   systemd.services."borgbackup-job-alpha-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"
     '';
   };