diff options
author | Ryan Mulligan <ryan@ryantm.com> | 2019-02-24 08:28:42 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-24 08:28:42 -0800 |
commit | d14f102334e2d91ce94c29be79ce57989c88206c (patch) | |
tree | d3d999399e17777481756a24fb981eae3a30154c /nixos/maintainers | |
parent | 1a50038ed707c59e41630b996a8a48a1a11f6540 (diff) | |
parent | 15f98b7192f7f0cde166d0b0a400cffefa5399ff (diff) |
Merge pull request #44573 from vincentbernat/feature/cloudstack
nixos/cloudstack-image: initial import
Diffstat (limited to 'nixos/maintainers')
-rw-r--r-- | nixos/maintainers/scripts/cloudstack/cloudstack-image.nix | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/nixos/maintainers/scripts/cloudstack/cloudstack-image.nix b/nixos/maintainers/scripts/cloudstack/cloudstack-image.nix new file mode 100644 index 000000000000..37b46db059c0 --- /dev/null +++ b/nixos/maintainers/scripts/cloudstack/cloudstack-image.nix @@ -0,0 +1,23 @@ +# nix-build '<nixpkgs/nixos>' -A config.system.build.cloudstackImage --arg configuration "{ imports = [ ./nixos/maintainers/scripts/cloudstack/cloudstack-image.nix ]; }" + +{ config, lib, pkgs, ... }: + +with lib; + +{ + imports = + [ ../../../modules/virtualisation/cloudstack-config.nix ]; + + system.build.cloudstackImage = import ../../../lib/make-disk-image.nix { + inherit lib config pkgs; + diskSize = 8192; + format = "qcow2"; + configFile = pkgs.writeText "configuration.nix" + '' + { + imports = [ <nixpkgs/nixos/modules/virtualisation/cloudstack-config.nix> ]; + } + ''; + }; + +} |