From 4b89d478870d211672737fc492b52aefb98ac574 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 3 Oct 2016 18:16:34 +0200 Subject: ec2-amis.nix: Create a "latest" attribute for NixOps --- nixos/modules/virtualisation/ec2-amis.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/nixos/modules/virtualisation/ec2-amis.nix b/nixos/modules/virtualisation/ec2-amis.nix index 2df8e1fdd7a8..ffd1cbec3ce3 100644 --- a/nixos/modules/virtualisation/ec2-amis.nix +++ b/nixos/modules/virtualisation/ec2-amis.nix @@ -1,4 +1,4 @@ -{ +let self = { "14.04".ap-northeast-1.hvm-ebs = "ami-71c6f470"; "14.04".ap-northeast-1.pv-ebs = "ami-4dcbf84c"; "14.04".ap-northeast-1.pv-s3 = "ami-8fc4f68e"; @@ -180,4 +180,6 @@ "16.09".us-west-2.hvm-s3 = "ami-93fc25f3"; "16.09".us-west-2.pv-ebs = "ami-14fe2774"; "16.09".us-west-2.pv-s3 = "ami-74f12814"; -} + + latest = self."16.09"; +}; in self -- cgit 1.4.1