recovery: sytem.build -> mobile.outputs
-{ config, pkgs, ... }:
+{ config, lib, pkgs, ... }:
# This module provides the `recovery` build output.
# It is the same configuration, with minor customizations.
+let
+ inherit (lib)
+ mkOption
+ types
+ ;
+in
{
- system.build.recovery = (config.lib.mobile-nixos.composeConfig {
+ options = {
+ mobile = {
+ outputs = {
+ recovery = mkOption {
+ description = ''
+ The configuration, re-evaluated with assumptions for recovery use.
+ '';
+ };
+ };
+ };
+ };
+
+ config = {
+ mobile.outputs.recovery = (config.lib.mobile-nixos.composeConfig {
config = {
mobile.system.android.bootimg.name = "recovery.img";
mobile.boot.stage-1.bootConfig = {
};
};
}).config;
+ };
}
