diff --git a/nixos/template-base/configuration.nix b/nixos/template-base/configuration.nix index 752c636..a045fcc 100644 --- a/nixos/template-base/configuration.nix +++ b/nixos/template-base/configuration.nix @@ -10,7 +10,8 @@ in ./hardware-configuration.nix; networking.hostName = "k8s-base-template"; - networking.useDHCP = lib.mkDefault true; + networking.useDHCP = false; + networking.useNetworkd = true; networking.nameservers = [ "1.1.1.1" "8.8.8.8" ]; boot.loader.systemd-boot.enable = lib.mkForce false; @@ -20,6 +21,8 @@ in }; services.qemuGuest.enable = true; + services.cloud-init.enable = true; + services.cloud-init.network.enable = true; services.openssh.enable = true; services.openssh.settings = { PasswordAuthentication = false;