Skip to content

Commit 6eeee85

Browse files
fix: Disable automatic DHCP from NixOS itself, add cloud-init package
1 parent f0e5eca commit 6eeee85

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

configuration.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
# Enabling things for easy connectivity and for integration with Proxmox, as well as other hypervisors
1818
services.cloud-init.enable = true;
1919
services.cloud-init.network.enable = true;
20+
networking.useDHCP = false; # cloud-init should handle this
2021
services.openssh = {
2122
enable = true;
2223
settings.PermitRootLogin = "prohibit-password";
@@ -29,6 +30,7 @@
2930
# For convenience of installation/debugging
3031
security.sudo.wheelNeedsPassword = false;
3132
environment.systemPackages = with pkgs; [
33+
cloud-init
3234
nano
3335
vim
3436
man-db

0 commit comments

Comments
 (0)