nixos-generators/formats/openstack.nix

21 lines
432 B
Nix
Raw Normal View History

2023-05-29 10:35:13 +03:00
{
modulesPath,
lib,
...
}:
if lib.pathExists "${toString modulesPath}/../maintainers/scripts/openstack/nova-image.nix"
then {
2018-04-28 13:01:45 +03:00
imports = [
"${toString modulesPath}/../maintainers/scripts/openstack/nova-image.nix"
2018-04-28 13:01:45 +03:00
];
formatAttr = "novaImage";
2023-05-29 10:35:13 +03:00
}
else {
imports = [
"${toString modulesPath}/../maintainers/scripts/openstack/openstack-image.nix"
];
formatAttr = "openstackImage";
2023-07-22 17:20:50 +03:00
fileExtension = ".qcow2";
2018-04-28 13:01:45 +03:00
}