diff --git a/README.md b/README.md index 2dab83c..35c4ef2 100644 --- a/README.md +++ b/README.md @@ -137,6 +137,7 @@ See code for all available configurations. | [MSI GS60 2QE][] | `` | | PC Engines APU | `` | | [Raspberry Pi 2][] | `` | +| [Raspberry Pi 4][] | `` | | [Samsung Series 9 NP900X3C][] | `` | | [Purism Librem 13v3][] | `` | | [Purism Librem 15v3][] | `` | diff --git a/flake.nix b/flake.nix index 570f0d2..0a16ed1 100644 --- a/flake.nix +++ b/flake.nix @@ -73,6 +73,7 @@ microsoft-surface-pro-3 = import ./microsoft/surface-pro/3; pcengines-apu = import ./pcengines/apu; raspberry-pi-2 = import ./raspberry-pi/2; + raspberry-pi-4 = import ./raspberry-pi/4; samsung-np900x3c = import ./samsung/np900x3c; system76 = import ./system76; system76-darp6 = import ./system76/darp6; diff --git a/raspberry-pi/4/default.nix b/raspberry-pi/4/default.nix new file mode 100644 index 0000000..1ac0acb --- /dev/null +++ b/raspberry-pi/4/default.nix @@ -0,0 +1,17 @@ +{ lib, pkgs, ...}: + +{ + boot = { + kernelPackages = lib.mkDefault pkgs.linuxPackages_rpi4; + initrd.availableKernelModules = [ "usbhid" "usb_storage" "vc4" ]; + + loader = { + grub.enable = lib.mkDefault false; + generic-extlinux-compatible.enable = lib.mkDefault true; + }; + }; + + + # Required for the Wireless firmware + hardware.enableRedistributableFirmware = true; +}