nixos-config/hardware/gpu-rpi4.nix

14 lines
255 B
Nix
Raw Normal View History

2020-10-06 18:09:04 +02:00
{ config, pkgs, ... }:
{
hardware.opengl = {
enable = true;
setLdLibraryPath = true;
package = pkgs.mesa_drivers;
};
2021-05-28 00:19:47 +02:00
hardware.raspberry-pi."4".fkms-3d.enable = true;
2020-10-06 18:09:04 +02:00
boot.loader.raspberryPi.firmwareConfig = ''
2020-10-07 02:03:30 +02:00
gpu_mem=320
2020-10-06 18:09:04 +02:00
'';
}