From 46e3e142c5750b4bda6679d2a2e4ec1b8e247493 Mon Sep 17 00:00:00 2001 From: DavHau Date: Sun, 5 Oct 2025 16:22:25 +0700 Subject: [PATCH] Remove default DHCP setting in cloud-init mixin This can only raise an error as it conflicts with the default set by nixos. There is also no reason to force dhcp to false just because one wants cloud init. It works very well for me even if dhcp is enabled. --- nixos/mixins/cloud-init.nix | 1 - 1 file changed, 1 deletion(-) diff --git a/nixos/mixins/cloud-init.nix b/nixos/mixins/cloud-init.nix index e0ec31ef..4241b87a 100644 --- a/nixos/mixins/cloud-init.nix +++ b/nixos/mixins/cloud-init.nix @@ -22,7 +22,6 @@ ); networking.useNetworkd = lib.mkDefault true; - networking.useDHCP = lib.mkDefault false; # Delegate the hostname setting to cloud-init by default networking.hostName = lib.mkOverride 1337 ""; # lower prio than lib.mkDefault