add emulation

This commit is contained in:
Daniel Langbein 2023-11-05 17:20:42 +01:00
parent d6b453fbbe
commit dc5241264e
Signed by: langfingaz
GPG Key ID: 6C47C753F0823002

9
modules/emulation.nix Normal file
View File

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