From 88969087feaaafbb97f223edb46749aaccdea0c2 Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Sat, 31 Jan 2026 22:59:19 +0100 Subject: [PATCH] fix: use cross-compilation from x86 to ARM for SD card image --- flake.nix | 7 ++++++- hosts/andromache/default.nix | 2 -- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index cdcb849..3256125 100644 --- a/flake.nix +++ b/flake.nix @@ -88,10 +88,15 @@ )) // { sd-image-aarch64 = nixpkgs.lib.nixosSystem { - system = "aarch64-linux"; + system = "x86_64-linux"; modules = [ "${nixpkgs}/nixos/modules/installer/sd-card/sd-image-aarch64.nix" ./images/sd-image-aarch64.nix + { + nixpkgs.crossSystem = { + system = "aarch64-linux"; + }; + } ]; specialArgs = { inherit inputs outputs dotsPath; diff --git a/hosts/andromache/default.nix b/hosts/andromache/default.nix index c35ceb1..c7ec510 100644 --- a/hosts/andromache/default.nix +++ b/hosts/andromache/default.nix @@ -76,8 +76,6 @@ in }; }; - boot.binfmt.emulatedSystems = [ "aarch64-linux" ]; - hardware = { cpu.intel.updateMicrocode = true; graphics.enable = true;