diff options
Diffstat (limited to 'os/pc/modules/network.nix')
| -rw-r--r-- | os/pc/modules/network.nix | 29 |
1 files changed, 26 insertions, 3 deletions
diff --git a/os/pc/modules/network.nix b/os/pc/modules/network.nix index eeb5b0e..8841547 100644 --- a/os/pc/modules/network.nix +++ b/os/pc/modules/network.nix @@ -1,7 +1,30 @@ -{ ... }: { - networking.wireless.iwd = { + networking.wireless.iwd.enable = true; + + systemd.network = { enable = true; - settings.General.EnableNetworkConfiguration = true; + networks = { + "99-wireless-dhcp" = { + matchConfig.Type = "wlan"; + networkConfig.DHCP = "yes"; + dhcpV4Config = { + UseHostname = "no"; + UseDNS = "no"; + }; + dhcpV6Config.UseDNS = "no"; + }; + "99-wired-dhcp" = { + matchConfig = { + Kind = "!*"; + Type = "ether"; + }; + networkConfig.DHCP = "yes"; + dhcpV4Config = { + UseHostname = "no"; + UseDNS = "no"; + }; + dhcpV6Config.UseDNS = "no"; + }; + }; }; } |
