diff options
Diffstat (limited to 'modules/system/nixos/networking/networkd.nix')
| -rw-r--r-- | modules/system/nixos/networking/networkd.nix | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/modules/system/nixos/networking/networkd.nix b/modules/system/nixos/networking/networkd.nix index 37b0908..d0e9eed 100644 --- a/modules/system/nixos/networking/networkd.nix +++ b/modules/system/nixos/networking/networkd.nix @@ -38,20 +38,16 @@ in networks."11-lan" = { name = "wl*"; - networkConfig = - ( - if dhcp_enabled - then {DHCP = "yes";} - else { - Address = cfg.static.ip; - Gateway = cfg.static.gateway; - DHCP = "no"; - # DNS is managed by systemd-resolved (not specified here) - } - ) - // { - LinkLocalAddressing = "no"; - }; + networkConfig = ( + if dhcp_enabled + then {DHCP = "yes";} + else { + Address = cfg.static.ip; + Gateway = cfg.static.gateway; + DHCP = "no"; + # DNS is managed by systemd-resolved (not specified here) + } + ); dhcpV4Config.UseDNS = "no"; dhcpV6Config.UseDNS = "no"; |
