tpwrules / nixos-apple-silicon

Resources to install NixOS bare metal on Apple Silicon Macs
MIT License
743 stars 73 forks source link

Installing graphics gives me error #146

Closed bruhderek closed 5 months ago

bruhderek commented 5 months ago

I tried adding this on configuration.nix:

  hardware.asahi = {
    withRust = true;
    addEdgeKernelConfig = true;
    useExperimentalGPUDriver = true;
    experimentalGPUInstallMode = "replace";
  };

Am I doing something wrong?

Edit: The configuration built, OpenGL render string is Apple M1 (G13G B1), but the system still seems laggy and it does not seem like it uses the gpu

idm1try commented 5 months ago

test this config

  nixpkgs.overlays = [
    (final: prev: { mesa = final.mesa-asahi-edge; })
  ];

  hardware = {
    asahi = {
      addEdgeKernelConfig = true;
      peripheralFirmwareDirectory = ./firmware;
      useExperimentalGPUDriver = true;
      experimentalGPUInstallMode = "driver";
      withRust = true;
    };
    opengl.enable = true;
  };
bruhderek commented 5 months ago

@idm1try Already figured it out but thanks anyways

minego commented 5 months ago

What was it?

On Tue, Jan 23, 2024, at 8:02 PM, Zedik wrote:

@idm1try https://github.com/idm1try Already figured it out but thanks anyways

— Reply to this email directly, view it on GitHub https://github.com/tpwrules/nixos-apple-silicon/issues/146#issuecomment-1907271214, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADSRCBGCP5K5AA37E7ILJLYQB2VLAVCNFSM6AAAAABCDJV4CGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBXGI3TCMRRGQ. You are receiving this because you are subscribed to this thread.Message ID: @.***>

bruhderek commented 5 months ago

@minego removed the linux-x86_64 in configuraiton.nix