3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #231140 from NixOS/rosetta-nix-build

modules/rosetta: configure nix build sandbox to use rosetta
This commit is contained in:
Arian van Putten 2023-05-11 14:21:54 -04:00 committed by GitHub
commit 6c0935d466
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -50,11 +50,19 @@ in
}
];
fileSystems."${cfg.mountPoint}" = {
fileSystems."${cfg.mountPoint}" = {
device = cfg.mountTag;
fsType = "virtiofs";
};
nix.settings = {
extra-platforms = [ "x86_64-linux" ];
extra-sandbox-paths = [
"/run/binfmt"
cfg.mountPoint
];
};
boot.binfmt.registrations.rosetta = {
interpreter = "${cfg.mountPoint}/rosetta";