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 +}