pi4 stuffs

This commit is contained in:
2025-05-19 12:57:20 -05:00
parent 8f23dfea4e
commit e7942907b5
4 changed files with 52 additions and 10 deletions

View File

@@ -1,4 +1,7 @@
{ pkgs, lib, ... }:
let
uefi_pi4 = pkgs.callPackage ./pi4-uefi.nix { };
in
{
boot = {
loader = {
@@ -9,4 +12,10 @@
plymouth.enable = true;
kernelPackages = pkgs.linuxPackages_latest;
};
environment.systemPackages = [ uefi_pi4 ];
# Copy UEFI firmware files to the boot partition
system.activationScripts.installUEFIFirmware.text = ''
cp -r ${uefi_pi4}/share/uefi_rpi4/* /boot/firmware/
'';
}