0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 21:50:33 +03:00

modules/rosetta: configure nix build sandbox to use rosetta

With this we can do x86_64 builds on aarch64
This commit is contained in:
Arian van Putten 2023-05-10 14:28:50 -04:00
parent f431ee4a85
commit a33d032939

View file

@ -55,6 +55,14 @@ in
fsType = "virtiofs";
};
nix.settings = {
extra-platforms = [ "x86_64-linux" ];
extra-sandbox-paths = [
"/run/binfmt"
cfg.mountPoint
];
};
boot.binfmt.registrations.rosetta = {
interpreter = "${cfg.mountPoint}/rosetta";