about summary refs log tree commit diff
path: root/hosts/aptos/networking.nix
blob: ed5e1757d52bf9ccfed72916e1c4aaf7e33500cf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ ... }: {
  # Use systemd-networkd for networking
  systemd.network = {
    enable = true;
    networks = {
      wlan0 = {
        matchConfig.Name = "wlan0";
        networkConfig = { DHCP = "yes"; };
        extraConfig = ''
          [DHCPv4]
          UseDNS=yes
          UseDomains=yes
        '';
      };
    };
  };

  networking.wireless.iwd.enable = true;
  networking.private-wireguard.enable = true;

  my.services.tailscale.enable = true;
}