2024-04-26 03:57:25 +02:00
|
|
|
{ lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
nixpkgs.overlays = [
|
|
|
|
(import ./overlay.nix)
|
|
|
|
];
|
|
|
|
|
|
|
|
boot = {
|
|
|
|
kernelPackages = lib.mkDefault (pkgs.linuxPackagesFor pkgs.linux_rpi5);
|
|
|
|
initrd.availableKernelModules = [
|
2024-04-30 23:46:48 +02:00
|
|
|
"nvme"
|
2024-04-26 03:57:25 +02:00
|
|
|
"usbhid"
|
|
|
|
"usb_storage"
|
|
|
|
];
|
|
|
|
};
|
2024-04-30 19:24:45 +02:00
|
|
|
|
|
|
|
# Needed for Xorg to start (https://github.com/raspberrypi-ui/gldriver-test/blob/master/usr/lib/systemd/scripts/rp1_test.sh)
|
|
|
|
# This won't work for displays connected to the RP1 (DPI/composite/MIPI DSI), since I don't have one to test.
|
|
|
|
services.xserver.extraConfig = ''
|
|
|
|
Section "OutputClass"
|
|
|
|
Identifier "vc4"
|
|
|
|
MatchDriver "vc4"
|
|
|
|
Driver "modesetting"
|
|
|
|
Option "PrimaryGPU" "true"
|
|
|
|
EndSection
|
|
|
|
'';
|
2024-04-26 03:57:25 +02:00
|
|
|
}
|