summary refs log tree commit diff
path: root/nixos/modules/system/boot/loader/raspberrypi
diff options
context:
space:
mode:
authorBastian Köcher <git@kchr.de>2018-04-08 23:42:36 +0200
committerTuomas Tynkkynen <tuomas.tynkkynen@iki.fi>2018-04-22 18:27:17 +0300
commit6ed495cf13e55f1884204668b92facce5ee6896f (patch)
treec5fabe1fbbd051cc885ae78100924eb1dbaf359c /nixos/modules/system/boot/loader/raspberrypi
parent8bc970bbc7c4ee9423844fbe7a6561ed90d414db (diff)
downloadnixlib-6ed495cf13e55f1884204668b92facce5ee6896f.tar
nixlib-6ed495cf13e55f1884204668b92facce5ee6896f.tar.gz
nixlib-6ed495cf13e55f1884204668b92facce5ee6896f.tar.bz2
nixlib-6ed495cf13e55f1884204668b92facce5ee6896f.tar.lz
nixlib-6ed495cf13e55f1884204668b92facce5ee6896f.tar.xz
nixlib-6ed495cf13e55f1884204668b92facce5ee6896f.tar.zst
nixlib-6ed495cf13e55f1884204668b92facce5ee6896f.zip
raspberrypi-bootloader: Adds `firmwareConfig` config option
The `firmwareConfig` option will be appended to `/boot/config.txt`.
Diffstat (limited to 'nixos/modules/system/boot/loader/raspberrypi')
-rw-r--r--nixos/modules/system/boot/loader/raspberrypi/raspberrypi.nix11
1 files changed, 10 insertions, 1 deletions
diff --git a/nixos/modules/system/boot/loader/raspberrypi/raspberrypi.nix b/nixos/modules/system/boot/loader/raspberrypi/raspberrypi.nix
index adf13ce6098c..f974d07da9e5 100644
--- a/nixos/modules/system/boot/loader/raspberrypi/raspberrypi.nix
+++ b/nixos/modules/system/boot/loader/raspberrypi/raspberrypi.nix
@@ -45,7 +45,7 @@ let
       arm_control=0x200
     '' + optional cfg.uboot.enable ''
       kernel=u-boot-rpi.bin
-    '');
+    '' + optional (cfg.firmwareConfig != null) cfg.firmwareConfig);
 
 in
 
@@ -89,6 +89,15 @@ in
         };
 
       };
+
+      firmwareConfig = mkOption {
+        default = null;
+        type = types.nullOr types.string;
+        description = ''
+          Extra options that will be appended to <literal>/boot/config.txt</literal> file.
+          For possible values, see: https://www.raspberrypi.org/documentation/configuration/config-txt/
+        '';
+      };
     };
   };