aboutsummaryrefslogtreecommitdiff
path: root/modules/services/nixos/networking/networkd.nix
diff options
context:
space:
mode:
authorCollin Williams <96917990+bluedragon1221@users.noreply.github.com>2026-01-23 15:24:05 -0600
committerCollin Williams <96917990+bluedragon1221@users.noreply.github.com>2026-01-23 15:24:05 -0600
commit674d6f4d3dc72859f00046db1747354f4a7ad47f (patch)
tree596a7f2340431364df7f7123863f8d620d3b305c /modules/services/nixos/networking/networkd.nix
parentad5dd8f7c0de4e69e62e562471862a4ccdf56359 (diff)
various changes to networking stack
Diffstat (limited to 'modules/services/nixos/networking/networkd.nix')
-rw-r--r--modules/services/nixos/networking/networkd.nix27
1 files changed, 14 insertions, 13 deletions
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";
};
};
}