1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-16 11:43:21 +03:00
mobile-nixos/modules/recovery.nix
Edward Amsden c507b39099 Make the package set a parameter instead of using <nixpkgs> everywhere.
Co-authored-by: Samuel Dionne-Riel <samuel@dionne-riel.com>
Co-authored-by: Edward Amsden <edward@blackriversoft.com>
2021-02-02 01:58:41 -05:00

17 lines
434 B
Nix

{ pkgs, modules, baseModules, _mobile-nixos, ... }:
# 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 ++ [{
mobile.system.android.bootimg.name = "recovery.img";
mobile.boot.stage-1.bootConfig = {
is_recovery = true;
};
}];
}).config;
}