From 4d7687ec9211de21afe9420533bfb0e113159432 Mon Sep 17 00:00:00 2001 From: Travis Staton Date: Tue, 21 Feb 2023 20:21:55 -0500 Subject: [PATCH] add extra-config --- sd-image/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sd-image/default.nix b/sd-image/default.nix index b90a125..43aa90c 100644 --- a/sd-image/default.nix +++ b/sd-image/default.nix @@ -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/)