nixos-hardware/raspberry-pi/4/default.nix

27 lines
546 B
Nix
Raw Normal View History

2021-05-11 03:32:03 -04:00
{ lib, pkgs, ...}:
{
boot = {
kernelPackages = lib.mkDefault pkgs.linuxPackages_rpi4;
initrd.availableKernelModules = [ "usbhid" "usb_storage" "vc4" ];
loader = {
raspberryPi = {
enable = true;
version = 4;
firmwareConfig = ''
dtparam=audio=on
gpu_mem=192
'';
};
grub.enable = false;
generic-extlinux-compatible.enable = true;
};
};
nix.buildCores = 4;
# Required for the Wireless firmware
hardware.enableRedistributableFirmware = true;
}