Simplify return value of modules/default.nix

This commit is contained in:
Tobias Happ 2019-11-26 15:24:29 +01:00 committed by Alexander Sosedkin
parent 5546564104
commit 41e39deaec
2 changed files with 7 additions and 6 deletions

View file

@ -31,9 +31,7 @@ let
else showWarnings rawModule.config.warnings rawModule;
in
if initialBuild
then module.config
else {
{
inherit (module.config.build) activationPackage;
inherit (module.config.environment) path;
inherit (module) config;
}