about summary refs log tree commit diff
path: root/nixos/kompakt
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2023-02-15 14:32:53 +0900
committersefidel <contact@sefidel.net>2023-02-15 15:26:43 +0900
commit08d7136a2e3150dd898cf2d2d3756801dfb407bd (patch)
treea43164886b2238b070f12f004d1ae0ecf56a77ac /nixos/kompakt
parentf8d602464b299533806e72986a846d2d8025482e (diff)
downloadnixrc-08d7136a2e3150dd898cf2d2d3756801dfb407bd.tar.gz
nixrc-08d7136a2e3150dd898cf2d2d3756801dfb407bd.zip
feat(nixos/kompakt): use flakes for asahi-related dependencies
Imports are done directly inside the system configuration file to ensure
one doesn't forget to import the required modules.
Diffstat (limited to 'nixos/kompakt')
-rwxr-xr-xnixos/kompakt/asahi_firmware/all_firmware.tar.gzbin14086530 -> 0 bytes
-rwxr-xr-xnixos/kompakt/asahi_firmware/kernelcache.release.mac13gbin24460734 -> 0 bytes
-rw-r--r--nixos/kompakt/configuration.nix11
3 files changed, 8 insertions, 3 deletions
diff --git a/nixos/kompakt/asahi_firmware/all_firmware.tar.gz b/nixos/kompakt/asahi_firmware/all_firmware.tar.gz
deleted file mode 100755
index 974fca8..0000000
--- a/nixos/kompakt/asahi_firmware/all_firmware.tar.gz
+++ /dev/null
Binary files differdiff --git a/nixos/kompakt/asahi_firmware/kernelcache.release.mac13g b/nixos/kompakt/asahi_firmware/kernelcache.release.mac13g
deleted file mode 100755
index db5e091..0000000
--- a/nixos/kompakt/asahi_firmware/kernelcache.release.mac13g
+++ /dev/null
Binary files differdiff --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"
   ];