fix(rpi4): set up GPU support
This commit is contained in:
parent
54d9851069
commit
486b0b0e4f
19
hardware/gpu-rpi4.nix
Normal file
19
hardware/gpu-rpi4.nix
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
hardware.opengl = {
|
||||||
|
enable = true;
|
||||||
|
setLdLibraryPath = true;
|
||||||
|
package = pkgs.mesa_drivers;
|
||||||
|
};
|
||||||
|
hardware.deviceTree = {
|
||||||
|
overlays = [ "${pkgs.device-tree_rpi.overlays}/vc4-fkms-v3d.dtbo" ];
|
||||||
|
};
|
||||||
|
services.xserver = {
|
||||||
|
enable = false;
|
||||||
|
videoDrivers = [ "modesetting" ];
|
||||||
|
};
|
||||||
|
boot.loader.raspberryPi.firmwareConfig = ''
|
||||||
|
gpu_mem=192
|
||||||
|
'';
|
||||||
|
}
|
Loading…
Reference in a new issue