about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2023-02-15 00:09:04 +0900
committersefidel <contact@sefidel.net>2023-02-15 00:09:09 +0900
commitf2166db444cbacbc2c49c95fcd6981f0774e5a7f (patch)
tree555a019c43332a5fe0f7a7e6b3085cb90a746761 /nixos
parent748adbac7ca3452d0a1250c37ff4168d6ccf5ae0 (diff)
downloadnixrc-f2166db444cbacbc2c49c95fcd6981f0774e5a7f.tar.gz
nixrc-f2166db444cbacbc2c49c95fcd6981f0774e5a7f.zip
fix(nixos/kompakt): include peripheral firmwares
This fixes the impurity error on flakes.
Diffstat (limited to 'nixos')
-rwxr-xr-xnixos/kompakt/asahi_firmware/all_firmware.tar.gzbin0 -> 14086530 bytes
-rwxr-xr-xnixos/kompakt/asahi_firmware/kernelcache.release.mac13gbin0 -> 24460734 bytes
-rw-r--r--nixos/kompakt/configuration.nix6
3 files changed, 6 insertions, 0 deletions
diff --git a/nixos/kompakt/asahi_firmware/all_firmware.tar.gz b/nixos/kompakt/asahi_firmware/all_firmware.tar.gz
new file mode 100755
index 0000000..974fca8
--- /dev/null
+++ b/nixos/kompakt/asahi_firmware/all_firmware.tar.gz
Binary files differdiff --git a/nixos/kompakt/asahi_firmware/kernelcache.release.mac13g b/nixos/kompakt/asahi_firmware/kernelcache.release.mac13g
new file mode 100755
index 0000000..db5e091
--- /dev/null
+++ b/nixos/kompakt/asahi_firmware/kernelcache.release.mac13g
Binary files differdiff --git a/nixos/kompakt/configuration.nix b/nixos/kompakt/configuration.nix
index 837ee05..581af1f 100644
--- a/nixos/kompakt/configuration.nix
+++ b/nixos/kompakt/configuration.nix
@@ -15,6 +15,12 @@
   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;
+  # Or completely disable extraction and managemement of them completely:
+  # hardware.asahi.extractPeripheralFirmware = false;
+
   boot.supportedFilesystems = [ "zfs" ];
 
   networking.hostName = "kompakt"; # Define your hostname.