Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 6 additions & 23 deletions nixos/release.nix
Original file line number Diff line number Diff line change
Expand Up @@ -303,12 +303,13 @@ rec {
)
);

# A disk image that can be imported to Amazon EC2 and registered as an AMI
amazonImage = forMatchingSystems [ "x86_64-linux" "aarch64-linux" ] (
# The config for A disk image that can be imported to Amazon EC2 and registered as an AMI

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# The config for A disk image that can be imported to Amazon EC2 and registered as an AMI
# The config for a disk image that can be imported to Amazon EC2 and registered as an AMI

# We do not actually build the AMI, but just the config that goes into the AMI.
# make-disk-image is already tested in other places.
# actual AMI build happens in https://github.com/NixOS/amis
amazonConfig = forMatchingSystems [ "x86_64-linux" "aarch64-linux" ] (
system:

with import ./.. { inherit system; };

hydraJob (
(import lib/eval-config.nix {
inherit system;
Expand All @@ -317,26 +318,8 @@ rec {
versionModule
./maintainers/scripts/ec2/amazon-image.nix
];
}).config.system.build.amazonImage
}).config.system.build.toplevel
)

);
amazonImageZfs = forMatchingSystems [ "x86_64-linux" "aarch64-linux" ] (
system:

with import ./.. { inherit system; };

hydraJob (
(import lib/eval-config.nix {
inherit system;
modules = [
configuration
versionModule
./maintainers/scripts/ec2/amazon-image-zfs.nix
];
}).config.system.build.amazonImage
)

);

# An image that can be imported into incus and used for container creation
Expand Down