1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-11-09 16:34:32 +03:00

modules/stage-0: Use composeConfig

This commit is contained in:
Samuel Dionne-Riel 2021-01-28 21:32:17 -05:00
parent 84b7e5eead
commit 25b2d8fbba

View File

@ -1,4 +1,4 @@
{ config, lib, pkgs, modules, baseModules, _mobile-nixos, ... }:
{ config, lib, pkgs, ... }:
# This module provides the `stage-0` build output.
# It is the same configuration, with minor customizations.
@ -22,11 +22,10 @@ in
};
config = {
system.build.stage-0 = (_mobile-nixos.evalConfig {
inherit baseModules;
modules = modules ++ [{
system.build.stage-0 = (config.lib.mobile-nixos.composeConfig {
config = {
mobile.boot.stage-1.stage = if supportsStage-0 then 0 else 1;
}];
};
}).config;
};
}