From b038d103fe7c0e8b489b380633c32ed451414a49 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Tue, 8 Aug 2023 19:21:52 +0000 Subject: [PATCH] [NixOS] Raspberry pi hardware acceleration working again --- nixos/raspberry-pi.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/nixos/raspberry-pi.nix b/nixos/raspberry-pi.nix index 99f30f55..5f98284a 100644 --- a/nixos/raspberry-pi.nix +++ b/nixos/raspberry-pi.nix @@ -4,8 +4,11 @@ imports = [ inputs.nixos-hardware.nixosModules.raspberry-pi-4 ]; + # These are needed to allow hardware acceleration again # https://github.com/NixOS/nixos-hardware/issues/631 - # hardware.raspberry-pi."4".fkms-3d.enable = true; + boot.kernelParams = [ "kunit.enable=0" ]; + hardware.deviceTree.filter = "bcm2711-rpi-4*.dtb"; + hardware.raspberry-pi."4".fkms-3d.enable = true; # hardware.raspberry-pi."4".audio.enable = true; boot = { @@ -24,7 +27,6 @@ }; boot.extraModulePackages = [ ]; - boot.kernelParams = [ ]; hardware.enableRedistributableFirmware = true;