Commit a33d0329 authored by Arian van Putten's avatar Arian van Putten
Browse files

modules/rosetta: configure nix build sandbox to use rosetta

With this we can do x86_64 builds on aarch64
parent f431ee4a
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -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";