From dc5241264ed628ad91cc1ffdc4c35066adf0b8b4 Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Sun, 5 Nov 2023 17:20:42 +0100 Subject: [PATCH] add emulation --- modules/emulation.nix | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 modules/emulation.nix diff --git a/modules/emulation.nix b/modules/emulation.nix new file mode 100644 index 0000000..3b16767 --- /dev/null +++ b/modules/emulation.nix @@ -0,0 +1,9 @@ +{ config, pkgs, ... }: +{ + # Required to build an aarch64 installation ISO on x86. + boot.binfmt.emulatedSystems = [ "aarch64-linux" ]; + + # To check if binfmt is enabled: + # ls /proc/sys/fs/binfmt_misc/ + # cat /proc/sys/fs/binfmt_misc/aarch64-linux +}