Created
March 16, 2020 00:33
-
-
Save dhess/f5e356ddb2c8544b43d45cef9ca349de to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
self: super: | |
let | |
mkEC2Image = format: (import (super.path + "/nixos/lib/eval-config.nix") { | |
system = "x86_64-linux"; | |
modules = | |
[ | |
(super.path + "/nixos/maintainers/scripts/ec2/amazon-image.nix") | |
{ | |
ec2.hvm = true; | |
amazonImage.format = format; | |
# your custom config here. | |
} | |
]; | |
}).config.system.build.amazonImage; | |
ec2-image = super.recurseIntoAttrs { | |
qcow2 = mkEC2Image "qcow2"; | |
vhd = mkEC2Image "vpc"; | |
}; | |
in | |
{ | |
inherit ec2-image; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment