diff options
author | lassulus <git@lassul.us> | 2023-07-14 21:55:25 +0200 |
---|---|---|
committer | lassulus <git@lassul.us> | 2023-07-14 21:55:25 +0200 |
commit | 3ecc50fb63c6d460d3693ec8fb24cf9a15ed2fa7 (patch) | |
tree | 441e3e23fb5b0b66158d464e40d8083d6afe0f29 /lass/2configs/networkd.nix | |
parent | 7b6a5eb60d5127d1c43d3893b91932f06583c9ad (diff) |
l: use networkd everywhere
Diffstat (limited to 'lass/2configs/networkd.nix')
-rw-r--r-- | lass/2configs/networkd.nix | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lass/2configs/networkd.nix b/lass/2configs/networkd.nix new file mode 100644 index 00000000..12ffe0bd --- /dev/null +++ b/lass/2configs/networkd.nix @@ -0,0 +1,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; + }; + }; +} |