From 36e6d96d2c2a7de1ebe15dfb9687f250a292ffe8 Mon Sep 17 00:00:00 2001 From: clerie Date: Wed, 25 Oct 2023 18:25:15 +0200 Subject: [PATCH 1/2] hosts/krypton: enable binfmt virt for aarch64-linux --- hosts/krypton/configuration.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hosts/krypton/configuration.nix b/hosts/krypton/configuration.nix index 42f225b..53bdecf 100644 --- a/hosts/krypton/configuration.nix +++ b/hosts/krypton/configuration.nix @@ -29,6 +29,10 @@ networking.hostName = "krypton"; + boot.binfmt.emulatedSystems = [ + "aarch64-linux" + ]; + system.stateVersion = "23.05"; } From 0111f67b6d68d2f819612c7767d8769c5ebfc181 Mon Sep 17 00:00:00 2001 From: clerie Date: Wed, 25 Oct 2023 18:28:37 +0200 Subject: [PATCH 2/2] flake.nix: multi system packages --- flake.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/flake.nix b/flake.nix index 388cc00..0bebde9 100644 --- a/flake.nix +++ b/flake.nix @@ -84,18 +84,18 @@ }; } // helper.mapToColmenaHosts self.nixosConfigurations; - packages.x86_64-linux = let + packages = nixpkgs.lib.genAttrs [ "x86_64-linux" "aarch64-linux" ] (system: let pkgs = import nixpkgs { + inherit system; overlays = [ (import ./pkgs/overlay.nix) (_: _: { - inherit (agenix.packages."x86_64-linux") + inherit (agenix.packages.${system}) agenix; - inherit (chaosevents.packages."x86_64-linux") + inherit (chaosevents.packages.${system}) chaosevents; }) ]; - system = "x86_64-linux"; }; in { inherit (pkgs) @@ -113,7 +113,7 @@ update-from-hydra uptimestatus wetter; - }; + }); hydraJobs = { inherit (self)