{ config, lib, ... }: let allApps = lib.concatMap lib.attrValues (lib.concatMap lib.attrValues (lib.attrValues config.fysiweb-apps)); in { config = lib.mkMerge (map (appConfig: let path = (toString ../../apps) + "/${appConfig.appName}/host-module.nix"; in lib.optionalAttr (lib.pathIsRegularFile path) { } #(import path { }) ) #allApps); [ ]); }