device: Add `device.firmware` to allow a device to provide firmware files
@@ -26,5 +26,21 @@ with lib;
description = "The device's manufacturer name.";
};
};
+
+ firmware = mkOption {
+ type = types.package;
+ description = ''
+ Informal option that the end-user can use to get their device's firmware package
+
+ The device configuration may provide this option so the user can simply
+ use `hardware.firmware = [ config.mobile.device.firmware ];`.
+
+ Note that not all devices provide a firmware bundle, in this case the
+ user should not add the previous example to their configuration.
+
+ This is not added automatically to the system firmwares as most device
+ firmware bundles will be unredistributable.
+ '';
+ };
};
}
