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 = [
|
2019-02-01 01:06:29 +03:00
|
|
|
"${toString modulesPath}/../maintainers/scripts/openstack/nova-image.nix"
|
2018-04-28 13:01:45 +03:00
|
|
|
];
|
2019-01-17 17:18:00 +03:00
|
|
|
|
|
|
|
formatAttr = "novaImage";
|
2023-05-29 10:35:13 +03:00
|
|
|
}
|
|
|
|
else {
|
2019-02-21 05:18:48 +03:00
|
|
|
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
|
|
|
}
|