summaryrefslogtreecommitdiffstats
path: root/lass/2configs/networkd.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2023-07-25 20:39:35 +0200
committertv <tv@krebsco.de>2023-07-25 20:39:35 +0200
commit5d1b0675cf179f863a5b34b67661a953197b6057 (patch)
treedd9c83dff894fd97cee61dd1b2df3eaeecbbd740 /lass/2configs/networkd.nix
parenta2c9ad05b2e8237b915a100e1e38ca0f3d18526c (diff)
parent8eab63eaa81717391269a61355cb7fb64341fd1a (diff)
Merge remote-tracking branch 'orange/master'
Diffstat (limited to 'lass/2configs/networkd.nix')
-rw-r--r--lass/2configs/networkd.nix20
1 files changed, 20 insertions, 0 deletions
diff --git a/lass/2configs/networkd.nix b/lass/2configs/networkd.nix
new file mode 100644
index 000000000..12ffe0bd7
--- /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;
+ };
+ };
+}