From 16a9362aba27823b963ab22e3d7a8c928b34bdf2 Mon Sep 17 00:00:00 2001 From: Rouven Seifert Date: Wed, 10 Apr 2024 00:33:33 +0200 Subject: [PATCH] thinkpad: minor networking fixes --- hosts/thinkpad/modules/networks/default.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/hosts/thinkpad/modules/networks/default.nix b/hosts/thinkpad/modules/networks/default.nix index e1630e5..c00bec5 100644 --- a/hosts/thinkpad/modules/networks/default.nix +++ b/hosts/thinkpad/modules/networks/default.nix @@ -1,4 +1,4 @@ -{ pkgs, config, ... }: +{ pkgs, config, lib, ... }: { imports = [ ./uni.nix ]; @@ -26,6 +26,7 @@ curlFull wireguard-tools ]; + services.timesyncd.servers = lib.mkForce [ ]; services.resolved = { fallbackDns = [ "9.9.9.9" @@ -56,11 +57,13 @@ "@DORM_SSID@" = { psk = "@DORM_PSK@"; authProtocols = [ "SAE" ]; + extraConfig = "disabled=1"; }; "@DORM5_SSID@" = { priority = 5; psk = "@DORM_PSK@"; authProtocols = [ "SAE" ]; + extraConfig = "disabled=1"; }; "@PIXEL_SSID@" = { psk = "@PIXEL_PSK@"; @@ -134,7 +137,6 @@ }; - # some wireguard interfaces netdevs."30-wg0" = { netdevConfig = { Kind = "wireguard"; @@ -159,13 +161,12 @@ }; networks."30-wg0" = { matchConfig.Name = "wg0"; - linkConfig.RequiredForOnline = "carrier"; + linkConfig.RequiredForOnline = false; networkConfig = { Address = "192.168.43.3/32"; DNS = "192.168.43.1"; Domains = "~vpn.rfive.de ~43.168.192.in-addr.arpa"; DNSSEC = false; - BindCarrier = [ "wlp9s0" ]; }; }; };