1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2025-01-08 12:48:50 +03:00
mobile-nixos/modules/recovery.nix
2021-08-29 19:51:34 -04:00

37 lines
729 B
Nix

{ config, lib, pkgs, ... }:
# This module provides the `recovery` build output.
# It is the same configuration, with minor customizations.
let
inherit (lib)
mkOption
types
;
in
{
options = {
mobile = {
outputs = {
recovery = mkOption {
internal = true;
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 = {
is_recovery = true;
};
};
}).config;
};
}