[microvm] fix comparision

This commit is contained in:
2024-11-21 13:02:54 +01:00
parent 26cc4b245e
commit 02c1e307ed

View File

@@ -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);
};
}