1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-15 19:23:01 +03:00

modules/recovery: Use composeConfig

This commit is contained in:
Samuel Dionne-Riel 2021-01-28 21:32:02 -05:00
parent 34b033330f
commit 84b7e5eead

View File

@ -1,16 +1,15 @@
{ pkgs, modules, baseModules, _mobile-nixos, ... }:
{ config, pkgs, ... }:
# This module provides the `recovery` build output.
# It is the same configuration, with minor customizations.
{
system.build.recovery = (_mobile-nixos.evalConfig {
inherit baseModules;
modules = modules ++ [{
system.build.recovery = (config.lib.mobile-nixos.composeConfig {
config = {
mobile.system.android.bootimg.name = "recovery.img";
mobile.boot.stage-1.bootConfig = {
is_recovery = true;
};
}];
};
}).config;
}