diff options
author | Dan Peebles <pumpkin@me.com> | 2017-10-23 16:22:16 -0400 |
---|---|---|
committer | Dan Peebles <pumpkin@me.com> | 2017-10-23 16:22:24 -0400 |
commit | 63f7456f6ac63ec03268eb85766153cdb9b6d444 (patch) | |
tree | 0002ead27f27bb84e4c50e98fa29a45e46f6b614 /nixos | |
parent | bb493911516b812d5e03567836fb049c2ee02608 (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')
-rw-r--r-- | nixos/maintainers/scripts/ec2/amazon-image.nix | 8 |
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; |