mirror of
https://github.com/nix-community/nixos-generators.git
synced 2024-11-25 19:07:59 +03:00
21 lines
432 B
Nix
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";
|
|
}
|