Fix builder

This commit is contained in:
soraefir
2026-05-06 23:39:28 +02:00
parent 3caf507905
commit 1f2cc94a0a
3 changed files with 15 additions and 11 deletions

View File

@@ -1,10 +1,10 @@
{ config, pkgs, lib, ... }:
let
serverCfg = config.syscfg.server.containers;
mkContainer = import ./builder.nix { inherit config lib serverCfg; };
builder = import ./builder.nix { inherit config lib serverCfg; };
enabledConfigs = lib.filterAttrs (name: c: c.enable) serverCfg;
containerSetsList = lib.mapAttrsToList (name: containerCfg:
let defs = import (./defs + "/${name}.nix") {inherit config pkgs lib containerCfg mkContainer;};
let defs = import (./defs + "/${name}.nix") {inherit config pkgs lib containerCfg builder;};
in{
containers = lib.mapAttrs' (cName: cValue:
lib.nameValuePair "${name}-${cName}" cValue