2022-12-04 13:45:43 +00:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
2023-09-01 01:46:14 +01:00
|
|
|
}: let
|
|
|
|
inherit (lib.modules) mkForce;
|
|
|
|
in {
|
2022-01-16 11:37:09 +00:00
|
|
|
boot.binfmt = {
|
2022-12-04 13:45:43 +00:00
|
|
|
emulatedSystems = ["aarch64-linux"];
|
2022-01-16 11:37:09 +00:00
|
|
|
registrations.aarch64-linux = {
|
2023-09-01 01:46:14 +01:00
|
|
|
interpreter = mkForce "${pkgs.qemu}/bin/qemu-aarch64";
|
2022-01-16 11:37:09 +00:00
|
|
|
};
|
|
|
|
};
|
2022-12-04 13:45:43 +00:00
|
|
|
nix.settings.extra-sandbox-paths = ["/run/binfmt" "${pkgs.qemu}"];
|
2022-01-16 11:37:09 +00:00
|
|
|
}
|