nixos-generators/formats/openstack.nix
2023-07-22 16:20:50 +02:00

21 lines
432 B
Nix

{
modulesPath,
lib,
...
}:
if lib.pathExists "${toString modulesPath}/../maintainers/scripts/openstack/nova-image.nix"
then {
imports = [
"${toString modulesPath}/../maintainers/scripts/openstack/nova-image.nix"
];
formatAttr = "novaImage";
}
else {
imports = [
"${toString modulesPath}/../maintainers/scripts/openstack/openstack-image.nix"
];
formatAttr = "openstackImage";
fileExtension = ".qcow2";
}