From 1552f8433122b12f88a2dff319ca210f2127e160 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Fri, 30 Dec 2022 11:08:00 +0100 Subject: [PATCH] also expose aarch64 --- flake.nix | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/flake.nix b/flake.nix index ca03aa8..1a3089e 100644 --- a/flake.nix +++ b/flake.nix @@ -11,16 +11,19 @@ "cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g=" ]; - outputs = { self, nixos-unstable, nixos-2211 }: { - packages.x86_64-linux = let - netboot = nixpkgs: (import (nixpkgs + "/nixos/release.nix") {}).netboot.x86_64-linux; - kexec-installer = nixpkgs: (nixpkgs.legacyPackages.x86_64-linux.nixos [self.nixosModules.kexec-installer]).config.system.build.kexecTarball; + outputs = { self, nixos-unstable, nixos-2211 }: let + supportedSystems = [ "aarch64-linux" "x86_64-linux" ]; + forAllSystems = nixos-unstable.lib.genAttrs supportedSystems; + in { + packages = forAllSystems (system: let + netboot = nixpkgs: (import (nixpkgs + "/nixos/release.nix") {}).netboot.${system}; + kexec-installer = nixpkgs: (nixpkgs.legacyPackages.${system}.nixos [self.nixosModules.kexec-installer]).config.system.build.kexecTarball; in { netboot-nixos-unstable = netboot nixos-unstable; netboot-nixos-2211 = netboot nixos-2211; kexec-installer-nixos-unstable = kexec-installer nixos-unstable; kexec-installer-nixos-2211 = kexec-installer nixos-2211; - }; + }); nixosModules.kexec-installer = import ./nix/kexec-installer/module.nix; checks.x86_64-linux = { kexec-installer-unstable = nixos-unstable.legacyPackages.x86_64-linux.callPackage ./nix/kexec-installer/test.nix {};