summaryrefslogtreecommitdiffstats
path: root/lass/2configs/networkd.nix
blob: 12ffe0bd77de341cc19b620df4ebec2507ad5590 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ config, lib, pkgs, ... }:
{
  systemd.services.systemd-networkd-wait-online.enable = lib.mkForce false;
  systemd.services.systemd-networkd.stopIfChanged = false;
  # Services that are only restarted might be not able to resolve when resolved is stopped before
  systemd.services.systemd-resolved.stopIfChanged = false;

  networking.useNetworkd = true;
  systemd.network = {
    enable = true;
    networks.wl0 = {
      matchConfig.Name = "wl0";
      DHCP = "yes";
      networkConfig = {
        IgnoreCarrierLoss = "3s";
      };
      dhcpV4Config.UseDNS = true;
    };
  };
}