From 29afc2759469a227fd007a45e416738d64820091 Mon Sep 17 00:00:00 2001 From: kalipso Date: Thu, 21 Nov 2024 13:02:54 +0100 Subject: [PATCH] [microvm] fix comparision --- machines/modules/malobeo/microvm_host.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/machines/modules/malobeo/microvm_host.nix b/machines/modules/malobeo/microvm_host.nix index 91797fe..2ac4a88 100644 --- a/machines/modules/malobeo/microvm_host.nix +++ b/machines/modules/malobeo/microvm_host.nix @@ -57,7 +57,7 @@ in }; }; - imports = mkIf cfg.deployHosts != [] [ + imports = mkIf lib.length cfg.deployHosts != 0 [ inputs.microvm.nixosModules.host ]; @@ -73,7 +73,7 @@ in updateFlake = "git+https://git.dynamicdiscord.de/kalipso/infrastructure?ref=microvm"; }; }; in - mkIf cfg.deployHosts != [] + mkIf lib.length cfg.deployHosts != 0 builtins.listToAttrs (map mapperFunc cfg.deployHosts); }; }