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" ];