From 78ca5583c29884ef93490da3520cbc64f7e674b8 Mon Sep 17 00:00:00 2001 From: Gene Liverman Date: Mon, 2 Dec 2024 21:06:23 -0500 Subject: [PATCH] Update syntax for systemd.network routes --- modules/hosts/nixos/hetznix01/default.nix | 6 +++--- modules/hosts/nixos/hetznix02/default.nix | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/hosts/nixos/hetznix01/default.nix b/modules/hosts/nixos/hetznix01/default.nix index 1578cfe..820e3c2 100644 --- a/modules/hosts/nixos/hetznix01/default.nix +++ b/modules/hosts/nixos/hetznix01/default.nix @@ -78,9 +78,9 @@ "2a01:4ff:ff00::add:2" ]; routes = [ - { routeConfig = { Destination = "172.31.1.1"; }; } - { routeConfig = { Gateway = "172.31.1.1"; GatewayOnLink = true; }; } - { routeConfig.Gateway = "fe80::1"; } + { Destination = "172.31.1.1"; } + { Gateway = "172.31.1.1"; GatewayOnLink = true; } + { Gateway = "fe80::1"; } ]; # make the routes on this interface a dependency for network-online.target linkConfig.RequiredForOnline = "routable"; diff --git a/modules/hosts/nixos/hetznix02/default.nix b/modules/hosts/nixos/hetznix02/default.nix index fad0b42..cb2dfd9 100644 --- a/modules/hosts/nixos/hetznix02/default.nix +++ b/modules/hosts/nixos/hetznix02/default.nix @@ -65,9 +65,9 @@ "2a01:4ff:ff00::add:2" ]; routes = [ - { routeConfig = { Destination = "172.31.1.1"; }; } - { routeConfig = { Gateway = "172.31.1.1"; GatewayOnLink = true; }; } - { routeConfig.Gateway = "fe80::1"; } + { Destination = "172.31.1.1"; } + { Gateway = "172.31.1.1"; GatewayOnLink = true; } + { Gateway = "fe80::1"; } ]; # make the routes on this interface a dependency for network-online.target linkConfig.RequiredForOnline = "routable";