mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
cloudstack: add to image/images
This was an oversight in https://github.com/NixOS/nixpkgs/pull/347275, so it's currently missing from the variants listed in nixos-rebuild build-image
This commit is contained in:
parent
e0afcb011b
commit
d7e76ed0a2
3 changed files with 13 additions and 2 deletions
|
@ -8,10 +8,19 @@
|
|||
}:
|
||||
|
||||
{
|
||||
imports = [ ../../../modules/virtualisation/cloudstack-config.nix ];
|
||||
imports = [
|
||||
|
||||
../../../modules/virtualisation/cloudstack-config.nix
|
||||
../../../modules/image/file-options.nix
|
||||
];
|
||||
|
||||
system.nixos.tags = [ "cloudstack" ];
|
||||
image.extension = "qcow2";
|
||||
system.build.image = config.system.build.cloudstackImage;
|
||||
system.build.cloudstackImage = import ../../../lib/make-disk-image.nix {
|
||||
inherit lib config pkgs;
|
||||
inherit (config.virtualisation) diskSize;
|
||||
baseName = config.image.baseName;
|
||||
format = "qcow2";
|
||||
configFile = pkgs.writeText "configuration.nix" ''
|
||||
{
|
||||
|
|
|
@ -11,6 +11,7 @@ let
|
|||
imageModules = {
|
||||
amazon = ../../maintainers/scripts/ec2/amazon-image.nix;
|
||||
azure = ../virtualisation/azure-image.nix;
|
||||
cloudstack = ../../maintainers/scripts/cloudstack/cloudstack-image.nix;
|
||||
digital-ocean = ../virtualisation/digital-ocean-image.nix;
|
||||
google-compute = ../virtualisation/google-compute-image.nix;
|
||||
hyperv = ../virtualisation/hyperv-image.nix;
|
||||
|
|
|
@ -8,9 +8,10 @@ with lib;
|
|||
];
|
||||
|
||||
config = {
|
||||
fileSystems."/" = {
|
||||
fileSystems."/" = lib.mkImageMediaOverride {
|
||||
device = "/dev/disk/by-label/nixos";
|
||||
autoResize = true;
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
boot.growPartition = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue