File tree Expand file tree Collapse file tree 3 files changed +13
-2
lines changed
maintainers/scripts/cloudstack Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 88} :
99
1010{
11- imports = [ ../../../modules/virtualisation/cloudstack-config.nix ] ;
11+ imports = [
1212
13+ ../../../modules/virtualisation/cloudstack-config.nix
14+ ../../../modules/image/file-options.nix
15+ ] ;
16+
17+ system . nixos . tags = [ "cloudstack" ] ;
18+ image . extension = "qcow2" ;
19+ system . build . image = config . system . build . cloudstackImage ;
1320 system . build . cloudstackImage = import ../../../lib/make-disk-image.nix {
1421 inherit lib config pkgs ;
22+ inherit ( config . virtualisation ) diskSize ;
23+ baseName = config . image . baseName ;
1524 format = "qcow2" ;
1625 configFile = pkgs . writeText "configuration.nix" ''
1726 {
Original file line number Diff line number Diff line change 1111 imageModules = {
1212 amazon = ../../maintainers/scripts/ec2/amazon-image.nix ;
1313 azure = ../virtualisation/azure-image.nix ;
14+ cloudstack = ../../maintainers/scripts/cloudstack/cloudstack-image.nix ;
1415 digital-ocean = ../virtualisation/digital-ocean-image.nix ;
1516 google-compute = ../virtualisation/google-compute-image.nix ;
1617 hyperv = ../virtualisation/hyperv-image.nix ;
Original file line number Diff line number Diff line change @@ -8,9 +8,10 @@ with lib;
88 ] ;
99
1010 config = {
11- fileSystems . "/" = {
11+ fileSystems . "/" = lib . mkImageMediaOverride {
1212 device = "/dev/disk/by-label/nixos" ;
1313 autoResize = true ;
14+ fsType = "ext4" ;
1415 } ;
1516
1617 boot . growPartition = true ;
You can’t perform that action at this time.
0 commit comments