lol

modules/rosetta: configure nix build sandbox to use rosetta

With this we can do x86_64 builds on aarch64

+9 -1
+9 -1
nixos/modules/virtualisation/rosetta.nix
··· 50 50 } 51 51 ]; 52 52 53 - fileSystems."${cfg.mountPoint}" = { 53 + fileSystems."${cfg.mountPoint}" = { 54 54 device = cfg.mountTag; 55 55 fsType = "virtiofs"; 56 56 }; 57 57 58 + 59 + nix.settings = { 60 + extra-platforms = [ "x86_64-linux" ]; 61 + extra-sandbox-paths = [ 62 + "/run/binfmt" 63 + cfg.mountPoint 64 + ]; 65 + }; 58 66 boot.binfmt.registrations.rosetta = { 59 67 interpreter = "${cfg.mountPoint}/rosetta"; 60 68