From 8e3a8568e383d27f7cbf5a84e880d94cc7571f13 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Thu, 10 Oct 2024 14:24:05 -0400 Subject: [PATCH] system: only emulate aarch64-linux if x86_64-linux --- modules/system.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/system.nix b/modules/system.nix index 076cf67c..218311e4 100644 --- a/modules/system.nix +++ b/modules/system.nix @@ -87,7 +87,7 @@ in boot = { tmp = if iHaveLotsOfRam then { useTmpfs = true; } else { cleanOnBoot = true; }; - binfmt.emulatedSystems = [ "aarch64-linux" ]; + binfmt.emulatedSystems = mkIf (pkgs.system == "x86_64-linux") [ "aarch64-linux" ]; loader = { systemd-boot = mkIf (!isPhone) {