14 lines
501 B
Nix
14 lines
501 B
Nix
|
{ config, pkgs, ... }: {
|
||
|
boot.binfmt.registrations.aarch64 = {
|
||
|
interpreter = "${pkgs.qemu}/bin/qemu-aarch64";
|
||
|
magicOrExtension =
|
||
|
"\\x7fELF\\x02\\x01\\x01\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x02\\x00\\xb7\\x00";
|
||
|
mask =
|
||
|
"\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\x00\\xff\\xff\\xff\\xff\\xff\\xff\\x00\\xff\\xfe\\xff\\xff\\xff";
|
||
|
};
|
||
|
nix.sandboxPaths = [ "/run/binfmt" "${pkgs.qemu}" ];
|
||
|
nix.extraOptions = ''
|
||
|
extra-platforms = aarch64-linux ${pkgs.system}
|
||
|
'';
|
||
|
}
|