22 lines
565 B
Nix
Executable File
22 lines
565 B
Nix
Executable File
{ pkgs, lib, ... }:
|
|
let
|
|
uefi_pi4 = pkgs.callPackage ./pi4-uefi.nix { };
|
|
in
|
|
{
|
|
boot = {
|
|
loader = {
|
|
systemd-boot.enable = lib.mkForce true;
|
|
efi.canTouchEfiVariables = false;
|
|
generic-extlinux-compatible.enable = lib.mkForce false;
|
|
};
|
|
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/
|
|
'';
|
|
}
|