From e1fc3317b54d3fae1feae97e677b1f7da641211a Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Fri, 18 Nov 2022 22:35:00 -0500 Subject: [PATCH] adjust aws package layout --- flake.nix | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/flake.nix b/flake.nix index d588a57..76be6fb 100644 --- a/flake.nix +++ b/flake.nix @@ -83,12 +83,10 @@ }; # Package servers into images with a generator - packages.x86_64-linux = with inputs; { - aws = import ./hosts/aws { - inherit inputs globals; - system = "x86_64-linux"; - }; - }; + packages.aws = nixpkgs.lib.genAttrs [ "x86_64-linux" "aarch64-linux" ] + (system: { + "${system}" = import ./hosts/aws { inherit inputs globals system; }; + }); apps = forAllSystems (system: let pkgs = import nixpkgs { inherit system; };