Skip to content

Commit 46e3e14

Browse files
authored
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.
1 parent 1dbb22b commit 46e3e14

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

nixos/mixins/cloud-init.nix

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
);
2323

2424
networking.useNetworkd = lib.mkDefault true;
25-
networking.useDHCP = lib.mkDefault false;
2625

2726
# Delegate the hostname setting to cloud-init by default
2827
networking.hostName = lib.mkOverride 1337 ""; # lower prio than lib.mkDefault

0 commit comments

Comments
 (0)