Luke Granger-Brown
5283ee4fee
networkd appears to have gotten very aggressive about clearing routing rules it didn't insert itself
21 lines
693 B
Diff
21 lines
693 B
Diff
diff --git a/nixos/modules/system/boot/networkd.nix b/nixos/modules/system/boot/networkd.nix
|
|
--- a/nixos/modules/system/boot/networkd.nix
|
|
+++ b/nixos/modules/system/boot/networkd.nix
|
|
@@ -281,6 +281,8 @@ let
|
|
"PrivateKeyFile"
|
|
"ListenPort"
|
|
"FirewallMark"
|
|
+ "RouteTable"
|
|
+ "RouteMetric"
|
|
])
|
|
(assertInt "FirewallMark")
|
|
(assertRange "FirewallMark" 1 4294967295)
|
|
@@ -296,6 +298,8 @@ let
|
|
"AllowedIPs"
|
|
"Endpoint"
|
|
"PersistentKeepalive"
|
|
+ "RouteTable"
|
|
+ "RouteMetric"
|
|
])
|
|
(assertInt "PersistentKeepalive")
|
|
(assertRange "PersistentKeepalive" 0 65535)
|