mirror of
https://github.com/nix-community/nixos-generators.git
synced 2024-09-11 12:15:29 +03:00
14 lines
398 B
Nix
14 lines
398 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";
|
|
}
|