From 233998b8f31c4df4dc04d4d4186bd34b967e15fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Bourdeauducq?= Date: Thu, 29 Aug 2024 18:40:17 +0800 Subject: [PATCH] nixbld: work around tunnel bring-up race condition --- nixbld-etc-nixos/configuration.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nixbld-etc-nixos/configuration.nix b/nixbld-etc-nixos/configuration.nix index b9cefcc5..e0325d0d 100644 --- a/nixbld-etc-nixos/configuration.nix +++ b/nixbld-etc-nixos/configuration.nix @@ -272,6 +272,11 @@ in start_action = "start"; }; }; + # prevent race condition similar to https://github.com/NixOS/nixpkgs/issues/27070 + systemd.services.strongswan-swanctl = { + after = [ "network-addresses-alt0.service" ]; + requires = [ "network-addresses-alt0.service" ]; + }; systemd.services.network-custom-route-backup = { wantedBy = [ "network.target" ];