nixbld: work around tunnel bring-up race condition

This commit is contained in:
Sébastien Bourdeauducq 2024-08-29 18:40:17 +08:00
parent 90a6b84c09
commit 233998b8f3

View File

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