mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-25 09:28:27 +02:00
feat: apple-silicon - try to use m2's gpu
This commit is contained in:
@@ -18,7 +18,17 @@ in {
|
|||||||
];
|
];
|
||||||
|
|
||||||
# Specify path to peripheral firmware files.
|
# Specify path to peripheral firmware files.
|
||||||
hardware.asahi.peripheralFirmwareDirectory = "${my-asahi-firmware}/macbook-pro-m2-a2338";
|
hardware.asahi = {
|
||||||
|
enable = true;
|
||||||
|
peripheralFirmwareDirectory = "${my-asahi-firmware}/macbook-pro-m2-a2338";
|
||||||
|
|
||||||
|
# build the Asahi Linux Kernel with Rust support
|
||||||
|
withRust = true;
|
||||||
|
# use apple-silicon's GPU instead of CPU
|
||||||
|
useExperimentalGPUDriver = true;
|
||||||
|
# How to install the Asahi Mesa driver
|
||||||
|
experimentalGPUInstallMode = "driver"; # driver / replace(for non-flakes) / overlay
|
||||||
|
};
|
||||||
|
|
||||||
networking.wireless.iwd = {
|
networking.wireless.iwd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user