From 0d7dbc7d82bff97db985025eeb3b83b808e6b4cb Mon Sep 17 00:00:00 2001 From: Rouven Seifert Date: Sun, 15 Jan 2023 14:58:38 +0100 Subject: [PATCH] configured home network --- hosts/thinkpad/modules/networks/default.nix | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/hosts/thinkpad/modules/networks/default.nix b/hosts/thinkpad/modules/networks/default.nix index 5a56d40..57637ab 100644 --- a/hosts/thinkpad/modules/networks/default.nix +++ b/hosts/thinkpad/modules/networks/default.nix @@ -47,7 +47,24 @@ RouteMetric = 10; }; }; - networks."10-wireless" = { + networks."10-wireless-home" = { + matchConfig = { + Name = "wlp9s0"; + SSID = "Smoerrebroed"; + }; + networkConfig = { + DHCP = "yes"; + IgnoreCarrierLoss = "3s"; + }; + dhcpV4Config = { + RouteMetric = 20; + }; + routes = [ + # Route to the Model train network via raspi + { routeConfig = { Gateway = "192.168.178.63"; Destination = "192.168.179.0/24"; }; } + ]; + }; + networks."15-wireless-default" = { matchConfig.Name = "wlp9s0"; networkConfig = { DHCP = "yes";