Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
843 B · 32 lines
Nix
123456789101112131415161718192021222324252627282930313233# nix-build '<nixpkgs/nixos>' -A config.system.build.cloudstackImage --arg configuration "{ imports = [ ./nixos/maintainers/scripts/cloudstack/cloudstack-image.nix ]; }"
{ config, lib, pkgs, ...}:
{ 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" '' { imports = [ <nixpkgs/nixos/modules/virtualisation/cloudstack-config.nix> ]; } ''; };
}