about summary refs log tree commit diff
path: root/nixos/maintainers
diff options
context:
space:
mode:
authorDan Peebles <pumpkin@me.com>2017-10-23 16:22:16 -0400
committerDan Peebles <pumpkin@me.com>2017-10-23 16:22:24 -0400
commit63f7456f6ac63ec03268eb85766153cdb9b6d444 (patch)
tree0002ead27f27bb84e4c50e98fa29a45e46f6b614 /nixos/maintainers
parentbb493911516b812d5e03567836fb049c2ee02608 (diff)
amazon-image: make derivation name configurable
I'm getting dozens of nixos-disk-image entries in my store and it's
getting hard to track :)
Diffstat (limited to 'nixos/maintainers')
-rw-r--r--nixos/maintainers/scripts/ec2/amazon-image.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/nixos/maintainers/scripts/ec2/amazon-image.nix b/nixos/maintainers/scripts/ec2/amazon-image.nix
index d76fb644d029c..2e67edf8ee3d5 100644
--- a/nixos/maintainers/scripts/ec2/amazon-image.nix
+++ b/nixos/maintainers/scripts/ec2/amazon-image.nix
@@ -9,6 +9,12 @@ in {
   imports = [ ../../../modules/virtualisation/amazon-image.nix ];
 
   options.amazonImage = {
+    name = mkOption {
+      type = types.str;
+      description = "The name of the generated derivation";
+      default = "nixos-disk-image";
+    };
+
     contents = mkOption {
       example = literalExample ''
         [ { source = pkgs.memtest86 + "/memtest.bin";
@@ -38,7 +44,7 @@ in {
 
   config.system.build.amazonImage = import ../../../lib/make-disk-image.nix {
     inherit lib config;
-    inherit (cfg) contents format;
+    inherit (cfg) contents format name;
     pkgs = import ../../../.. { inherit (pkgs) system; }; # ensure we use the regular qemu-kvm package
     partitioned = config.ec2.hvm;
     diskSize = cfg.sizeMB;