Add authentik blueprints
This commit is contained in:
@@ -4,15 +4,15 @@ let
|
||||
builder = import ./builder.nix { inherit config lib serverCfg; };
|
||||
enabledConfigs = lib.filterAttrs (name: c: c.enable) serverCfg.containers;
|
||||
containerSetsList = lib.mapAttrsToList (name: containerCfg:
|
||||
let defs = import (./defs + "/${name}.nix") {inherit config pkgs lib containerCfg builder name;};
|
||||
let apps = import (./apps + "/${name}.nix") {inherit config pkgs lib containerCfg builder name;};
|
||||
in{
|
||||
name = name;
|
||||
containers = lib.mapAttrs' (cName: cValue:
|
||||
lib.nameValuePair "${name}-${cName}" cValue
|
||||
) defs.containers;
|
||||
paths = defs.paths or [];
|
||||
setup = defs.setup or null;
|
||||
cron = defs.cron or [];
|
||||
) apps.containers;
|
||||
paths = apps.paths or [];
|
||||
setup = apps.setup or null;
|
||||
cron = apps.cron or [];
|
||||
}
|
||||
) enabledConfigs;
|
||||
mergedContainers = lib.attrsets.mergeAttrsList (lib.map(e: e.containers) containerSetsList);
|
||||
|
||||
Reference in New Issue
Block a user