From 38b2243d8bb0b0c4c68ad9a47a563bd6bbdf43d2 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Tue, 21 Jul 2026 18:10:18 +0900 Subject: [PATCH] assets/systemd/roowho2.service: wait for network --- assets/systemd/roowho2.service | 2 ++ nix/module.nix | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/assets/systemd/roowho2.service b/assets/systemd/roowho2.service index b632b7d..3fa9587 100644 --- a/assets/systemd/roowho2.service +++ b/assets/systemd/roowho2.service @@ -1,4 +1,6 @@ [Unit] +Wants=network-online.target +After=network-online.target [Service] Type=notify diff --git a/nix/module.nix b/nix/module.nix index dcb126f..fe63be3 100644 --- a/nix/module.nix +++ b/nix/module.nix @@ -313,6 +313,10 @@ in { # }; systemd.services.roowho2 = { + # rwhod needs the network devices to be available for enumeration before starting. + after = lib.mkIf cfg.settings.rwhod.enable [ "network-online.target" ]; + wants = lib.mkIf cfg.settings.rwhod.enable [ "network-online.target" ]; + serviceConfig = { Type = "notify"; ExecStart = let