mirror of
https://github.com/nix-community/raspberry-pi-nix.git
synced 2025-11-08 19:46:03 +01:00
add extra-config
This commit is contained in:
parent
3263812697
commit
4d7687ec92
1 changed files with 7 additions and 1 deletions
|
|
@ -2,6 +2,12 @@
|
|||
|
||||
{
|
||||
imports = [ ./sd-image.nix ];
|
||||
options.hardware.raspberry-pi = {
|
||||
extra-config = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "";
|
||||
};
|
||||
};
|
||||
|
||||
boot.loader.grub.enable = false;
|
||||
boot.loader.generic-extlinux-compatible.enable = true;
|
||||
|
|
@ -47,7 +53,7 @@
|
|||
# Prevent the firmware from smashing the framebuffer setup done by the mainline kernel
|
||||
# when attempting to show low-voltage or overtemperature warnings.
|
||||
avoid_warnings=1
|
||||
'';
|
||||
'' ++ config.hardware.raspberry-pi.extra-config;
|
||||
in ''
|
||||
(cd ${raspberrypifw}/share/raspberrypi/boot && cp bootcode.bin fixup*.dat start*.elf $NIX_BUILD_TOP/firmware/)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue