From 33c55024dc5daaeac05f76724bc6095c65c13082 Mon Sep 17 00:00:00 2001 From: Johann Wagner Date: Tue, 2 Jul 2024 19:12:30 +0200 Subject: [PATCH] nixos/cloud-init: Allow systemd.network to be enabled if cloud-init.network is disabled --- nixos/modules/services/system/cloud-init.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/system/cloud-init.nix b/nixos/modules/services/system/cloud-init.nix index 5d7258cac778..18fe1a12e3b3 100644 --- a/nixos/modules/services/system/cloud-init.nix +++ b/nixos/modules/services/system/cloud-init.nix @@ -163,7 +163,7 @@ in { text = cfg.config; } ; - systemd.network.enable = cfg.network.enable; + systemd.network.enable = mkIf cfg.network.enable true; systemd.services.cloud-init-local = { description = "Initial cloud-init job (pre-networking)";