From 766712f7e7e92bdbc67dc8e91900e6c7299b3144 Mon Sep 17 00:00:00 2001 From: Erwin Boskma Date: Mon, 3 Jun 2024 11:12:33 +0200 Subject: [PATCH] Update systemd route configuration --- machines/heimdall/configuration.nix | 16 ++++++---------- machines/loki/configuration.nix | 24 ++++++++---------------- 2 files changed, 14 insertions(+), 26 deletions(-) diff --git a/machines/heimdall/configuration.nix b/machines/heimdall/configuration.nix index 252acd2..40ba454 100644 --- a/machines/heimdall/configuration.nix +++ b/machines/heimdall/configuration.nix @@ -64,18 +64,14 @@ routes = [ { - routeConfig = { - Destination = "172.31.1.1/32"; - Scope = "link"; - Protocol = "static"; - }; + Destination = "172.31.1.1/32"; + Scope = "link"; + Protocol = "static"; } { - routeConfig = { - Destination = "fe80::1/128"; - Scope = "link"; - Protocol = "static"; - }; + Destination = "fe80::1/128"; + Scope = "link"; + Protocol = "static"; } ]; }; diff --git a/machines/loki/configuration.nix b/machines/loki/configuration.nix index 7cd3e55..bb8d510 100644 --- a/machines/loki/configuration.nix +++ b/machines/loki/configuration.nix @@ -307,28 +307,20 @@ routes = [ { - routeConfig = { - Destination = "192.168.4.0/23"; - Scope = "link"; - }; + Destination = "192.168.4.0/23"; + Scope = "link"; } { - routeConfig = { - Destination = "192.168.6.0/24"; - Scope = "link"; - }; + Destination = "192.168.6.0/24"; + Scope = "link"; } { - routeConfig = { - Destination = "192.168.7.0/24"; - Scope = "link"; - }; + Destination = "192.168.7.0/24"; + Scope = "link"; } { - routeConfig = { - Destination = "192.168.8.0/24"; - Scope = "link"; - }; + Destination = "192.168.8.0/24"; + Scope = "link"; } ]; };