about summary refs log tree commit diff
path: root/nixos/kompakt/configuration.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/kompakt/configuration.nix')
-rw-r--r--nixos/kompakt/configuration.nix11
1 files changed, 8 insertions, 3 deletions
diff --git a/nixos/kompakt/configuration.nix b/nixos/kompakt/configuration.nix
index bc033f7..716ceb5 100644
--- a/nixos/kompakt/configuration.nix
+++ b/nixos/kompakt/configuration.nix
@@ -1,21 +1,26 @@
-{ config, lib, pkgs, ... }:
+{ config, lib, pkgs, apple-silicon, asahi-firmware, ... }:
 
 {
   imports =
     [
       ./hardware-configuration.nix
-      ../modules/apple-silicon-support
+      apple-silicon.nixosModules.apple-silicon-support
     ];
 
+  nixpkgs.overlays = [ apple-silicon.overlays.apple-silicon-overlay ];
+
   boot.loader.systemd-boot.enable = true;
   boot.loader.efi.canTouchEfiVariables = false;
 
   # Specify path to peripheral firmware files.
   # This lets the flake stay pure.
-  hardware.asahi.peripheralFirmwareDirectory = ./asahi_firmware;
+  hardware.asahi.peripheralFirmwareDirectory = asahi-firmware;
   # Or completely disable extraction and managemement of them completely:
   # hardware.asahi.extractPeripheralFirmware = false;
 
+  # Enable GPU acceleration
+  hardware.asahi.useExperimentalGPUDriver = true;
+
   boot.kernelParams = [
     "console=tty1"
   ];