From 674d6f4d3dc72859f00046db1747354f4a7ad47f Mon Sep 17 00:00:00 2001 From: Collin Williams <96917990+bluedragon1221@users.noreply.github.com> Date: Fri, 23 Jan 2026 15:24:05 -0600 Subject: various changes to networking stack --- modules/services/nixos/networking/networkd.nix | 27 +++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) (limited to 'modules/services/nixos/networking/networkd.nix') diff --git a/modules/services/nixos/networking/networkd.nix b/modules/services/nixos/networking/networkd.nix index 920b93f..e84fd2f 100644 --- a/modules/services/nixos/networking/networkd.nix +++ b/modules/services/nixos/networking/networkd.nix @@ -9,11 +9,14 @@ in lib.mkIf cfg.enable { networking = { - wireless = { - enable = true; - networks.${cfg.ssid}.pskRaw = "ext:psk"; - secretsFile = cfg.pskFile; - }; + wireless = + if !config.collinux.services.networking.iwd.enable + then { + enable = true; + networks.${cfg.ssid}.pskRaw = "ext:psk"; + secretsFile = cfg.pskFile; + } + else {}; useNetworkd = true; @@ -32,28 +35,26 @@ in anyInterface = true; }; - networks."11-static-lan" = { + networks."11-lan" = { name = "wl*"; networkConfig = ( if dhcp_enabled - then { - DHCP = "yes"; - } + then {DHCP = "yes";} else { Address = cfg.static.ip; Gateway = cfg.static.gateway; - # DNS is managed by systemd-resolvd (not specified here) DHCP = "no"; + # DNS is managed by systemd-resolved (not specified here) } ) // { - # diable ipv6 addresses - IPv6AcceptRA = "no"; - IPv6PrivacyExtensions = "no"; LinkLocalAddressing = "no"; }; + + dhcpV4Config.UseDNS = "no"; + dhcpV6Config.UseDNS = "no"; }; }; } -- cgit v1.3.1