1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-09-19 15:57:33 +03:00

module/lib: try to pass specialArgs to eval

This commit is contained in:
Pacman99 2021-05-06 16:30:46 -07:00
parent c926887717
commit 27683f2d52

View File

@ -1,4 +1,4 @@
{ config, lib, pkgs, baseModules, modules, ... }:
args@{ config, lib, pkgs, baseModules, modules, ... }:
let
# Keep modules from this eval around
@ -26,6 +26,9 @@ in
# to use `builtins.currentSystem`.
inherit system;
inherit baseModules;
# Newer versions of module system pass specialArgs to modules, so try
# to pass that to eval if possible.
specialArgs = args.specialArgs or { };
# Merge in this eval's modules with the argument's modules, and finally
# with the given config.
modules = modules' ++ modules ++ [ config ];