From 6591198c89954a2a8d29f1098158b3d68798c413 Mon Sep 17 00:00:00 2001 From: ChUrl Date: Fri, 16 Jun 2023 22:25:41 +0200 Subject: [PATCH] Disable DHCP by default for systemd-networkd --- system/nixinator/hardware-configuration.nix | 2 +- system/nixtop/hardware-configuration.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/system/nixinator/hardware-configuration.nix b/system/nixinator/hardware-configuration.nix index 8f050538..386f6647 100644 --- a/system/nixinator/hardware-configuration.nix +++ b/system/nixinator/hardware-configuration.nix @@ -75,7 +75,7 @@ # (the default) this is the recommended approach. When using systemd-networkd it's # still possible to use this option, but it's recommended to use it in conjunction # with explicit per-interface declarations with `networking.interfaces..useDHCP`. - networking.useDHCP = lib.mkDefault true; + networking.useDHCP = lib.mkDefault false; # NOTE: Set to false bc systemd-networkd # networking.interfaces.enp0s31f6.useDHCP = lib.mkDefault true; # networking.interfaces.enp4s0u2.useDHCP = lib.mkDefault true; # networking.interfaces.wlp3s0.useDHCP = lib.mkDefault true; diff --git a/system/nixtop/hardware-configuration.nix b/system/nixtop/hardware-configuration.nix index e7b28b5a..84d301a0 100644 --- a/system/nixtop/hardware-configuration.nix +++ b/system/nixtop/hardware-configuration.nix @@ -36,7 +36,7 @@ # (the default) this is the recommended approach. When using systemd-networkd it's # still possible to use this option, but it's recommended to use it in conjunction # with explicit per-interface declarations with `networking.interfaces..useDHCP`. - networking.useDHCP = lib.mkDefault true; + networking.useDHCP = lib.mkDefault false; # NOTE: Set to false bc systemd-networkd # networking.interfaces.enp0s25.useDHCP = lib.mkDefault true; # networking.interfaces.wlp3s0.useDHCP = lib.mkDefault true; # networking.interfaces.wwp0s20u4.useDHCP = lib.mkDefault true;