diff --git a/hosts/Aloria/default.nix b/hosts/Aloria/default.nix index 9259cf3..85c0651 100644 --- a/hosts/Aloria/default.nix +++ b/hosts/Aloria/default.nix @@ -76,6 +76,15 @@ in { }; }; + systemd.network.enable = true; + networking.useNetworkd = true; + systemd.network.config.networkConfig = { + ManageForeignRoutingPolicyRules = false; + ManageForeignRoutes = false; + SpeedMeter = true; + }; + systemd.services.systemd-networkd-wait-online.enable = lib.mkForce false; + networking.wg-quick.interfaces = { Tunnel = { address = [ "10.0.0.5/24" "2a02:a03f:83ad:2101::5/128" ]; @@ -106,4 +115,8 @@ in { }]; }; }; + systemd.services."wg-quick-OPNsense" = { + serviceConfig = { Restart = "on-failure"; RestartSec = "2s"; }; + unitConfig.StartLimitIntervalSec = 0; + }; }