diff --git a/hosts/yodaHedgehog/host-specific.nix b/hosts/yodaHedgehog/host-specific.nix index a4414fa..35604bc 100644 --- a/hosts/yodaHedgehog/host-specific.nix +++ b/hosts/yodaHedgehog/host-specific.nix @@ -43,6 +43,11 @@ in }; }; systemd.services."daily-backup-and-suspend" = { + # If the system wakes up at 00:05, it is not directly connected to the Internet. + # Thus, `btrbk` might fail with the following error while connecting to `rootNas`: + # ssh: Could not resolve hostname p1st.de: Name or service not known + # To avoid this, we depend on the `network-online` systemd target. + after = [ "network-online.target" ]; # Packages required for this script. # For `ssh` and `journalwatch`, there are assertions above. path = with pkgs; [