feat(nixos): scaffold macbook host for apple silicon (aarch64-linux)
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
{
|
||||
pkgs,
|
||||
myConfig,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
../../modules/nixos/default.nix
|
||||
../../modules/nixos/hyprland.nix
|
||||
# No gaming.nix (Steam is x86 only)
|
||||
# No amd.nix
|
||||
];
|
||||
|
||||
# Apple Silicon specific hardware tweaks
|
||||
hardware.asahi = {
|
||||
# peripheralFirmwareDirectory = ./firmware; # If you have extracted firmware
|
||||
useExperimentalGPUDriver = true;
|
||||
experimentalGPUInstallMode = "replace";
|
||||
};
|
||||
|
||||
# Bootloader for Asahi is usually systemd-boot or grub, but asahi-module handles m1n1
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = false; # Asahi often prefers this false to avoid bricking nvram
|
||||
}
|
||||
Reference in New Issue
Block a user