feat(rpi4): use nixos-hardware config

This commit is contained in:
Felix Schröter 2021-05-28 00:19:47 +02:00
parent d327ca0a6e
commit 4aef25101f
No known key found for this signature in database
GPG key ID: 910ACB9F6BD26F58
3 changed files with 23 additions and 9 deletions
hardware

View file

@ -6,13 +6,7 @@
setLdLibraryPath = true;
package = pkgs.mesa_drivers;
};
hardware.deviceTree = {
overlays = [ "${pkgs.device-tree_rpi.overlays}/vc4-fkms-v3d.dtbo" ];
};
services.xserver = {
enable = false;
videoDrivers = [ "modesetting" ];
};
hardware.raspberry-pi."4".fkms-3d.enable = true;
boot.loader.raspberryPi.firmwareConfig = ''
gpu_mem=320
'';