about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2023-11-15 16:06:18 +0900
committersefidel <contact@sefidel.net>2023-11-15 16:06:18 +0900
commit1329b5a4ee8ef3b26515e4355cb0e180436d642c (patch)
tree957a4719c226d601677e7889d1df2e788aa923f8 /nixos
parent72f0a54a965fd47ec6bbd21fc73ec266dd3f32ca (diff)
downloadnixrc-1329b5a4ee8ef3b26515e4355cb0e180436d642c.tar.gz
nixrc-1329b5a4ee8ef3b26515e4355cb0e180436d642c.zip
chore(systems): use system ping
Diffstat (limited to 'nixos')
-rw-r--r--nixos/alpha/configuration.nix2
-rw-r--r--nixos/haruka/configuration.nix2
2 files changed, 2 insertions, 2 deletions
diff --git a/nixos/alpha/configuration.nix b/nixos/alpha/configuration.nix
index 64270c8..326cb08 100644
--- a/nixos/alpha/configuration.nix
+++ b/nixos/alpha/configuration.nix
@@ -150,7 +150,7 @@
     preStart = lib.mkBefore ''
       # Wait until internet is reachable after resuming
       echo "Waiting until the remote is reachable..."
-      until /run/wrappers/bin/ping rsync.net -c1 -q >/dev/null 2>&1; do :; done
+      until /run/current-system/sw/bin/ping rsync.net -c1 -q >/dev/null 2>&1; do :; done
       echo "Remote is reachable, exiting preStart"
     '';
   };
diff --git a/nixos/haruka/configuration.nix b/nixos/haruka/configuration.nix
index 33815e6..eac1cb3 100644
--- a/nixos/haruka/configuration.nix
+++ b/nixos/haruka/configuration.nix
@@ -158,7 +158,7 @@
     preStart = lib.mkBefore ''
       # Wait until internet is reachable after resuming
       echo "Waiting until the remote is reachable..."
-      until /run/wrappers/bin/ping rsync.net -c1 -q >/dev/null 2>&1; do :; done
+      until /run/current-system/sw/bin/ping rsync.net -c1 -q >/dev/null 2>&1; do :; done
       echo "Remote is reachable, exiting preStart"
     '';
   };