From 2cd3ae1337cf51df76ce969aab58b29345c5d58f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Bourdeauducq?= Date: Mon, 6 May 2024 10:57:11 +0800 Subject: [PATCH] nixbld: fix routing policy for wifi --- nixbld-etc-nixos/configuration.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/nixbld-etc-nixos/configuration.nix b/nixbld-etc-nixos/configuration.nix index 70339ac..cf284a3 100644 --- a/nixbld-etc-nixos/configuration.nix +++ b/nixbld-etc-nixos/configuration.nix @@ -144,6 +144,19 @@ in address = "2001:470:f891:2::"; prefixLength = 64; }]; + # same hack as above + ipv4.routes = [ + { + address = "192.168.12.0"; + prefixLength = 24; + options.table = "1"; + } + { + address = "192.168.12.0"; + prefixLength = 24; + options.table = "2"; + } + ]; }; nat = { enable = true;