summaryrefslogtreecommitdiff
path: root/os/pc/modules/network.nix
blob: 8841547bb4bfa1cb990d9acd1fc6740109250fe7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{
  networking.wireless.iwd.enable = true;

  systemd.network = {
    enable = 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";
      };
    };
  };
}