From 63adb41f1a060c21a68143eb9e86c2790ef66f36 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 8 Aug 2024 10:45:09 +0200 Subject: ... --- hosts/vidhar/network/bifrost/default.nix | 46 ++++++++++++-------------------- 1 file changed, 17 insertions(+), 29 deletions(-) (limited to 'hosts/vidhar/network/bifrost') diff --git a/hosts/vidhar/network/bifrost/default.nix b/hosts/vidhar/network/bifrost/default.nix index ec354f81..59550481 100644 --- a/hosts/vidhar/network/bifrost/default.nix +++ b/hosts/vidhar/network/bifrost/default.nix @@ -18,12 +18,10 @@ in { ListenPort = 51822; }; wireguardPeers = [ - { wireguardPeerConfig = { - AllowedIPs = [ "::/0" ]; - PublicKey = trim (readFile ../../../surtr/bifrost/surtr.pub); - PersistentKeepalive = 5; - Endpoint = "2a03:4000:52:ada:::51822"; - }; + { AllowedIPs = [ "::/0" ]; + PublicKey = trim (readFile ../../../surtr/bifrost/surtr.pub); + PersistentKeepalive = 5; + Endpoint = "2a03:4000:52:ada:::51822"; } ]; }; @@ -36,35 +34,25 @@ in { }; address = ["2a03:4000:52:ada:4:1::/96"]; routes = [ - { routeConfig = { - Destination = "2a03:4000:52:ada:4::/80"; - }; + { Destination = "2a03:4000:52:ada:4::/80"; } - { routeConfig = { - Gateway = "2a03:4000:52:ada:4::"; - GatewayOnLink = true; - Table = "bifrost"; - }; + { Gateway = "2a03:4000:52:ada:4::"; + GatewayOnLink = true; + Table = "bifrost"; } - { routeConfig = { - Destination = "2a03:4000:52:ada:4::/80"; - GatewayOnLink = true; - Table = "bifrost"; - }; + { Destination = "2a03:4000:52:ada:4::/80"; + GatewayOnLink = true; + Table = "bifrost"; } - { routeConfig = { - Destination = "2a03:4000:52:ada:4:1::/96"; - GatewayOnLink = true; - Table = "bifrost"; - }; + { Destination = "2a03:4000:52:ada:4:1::/96"; + GatewayOnLink = true; + Table = "bifrost"; } ]; routingPolicyRules = [ - { routingPolicyRuleConfig = { - Table = "bifrost"; - From = "2a03:4000:52:ada:4:1::/96"; - Priority = 1; - }; + { Table = "bifrost"; + From = "2a03:4000:52:ada:4:1::/96"; + Priority = 1; } ]; linkConfig = { -- cgit v1.2.3