{configVars, config, ...}: let baseddataPostgresIp = configVars.networking.addresses.postgres.ip; in { sops.templates."dbt_profiles.yml" = { path = "/run/secrets/templates/dbt/profiles.yml"; mode = "0600"; content = '' baseddata: target: prod outputs: prod: dbname: baseddata host: ${baseddataPostgresIp} pass: '${config.sops.placeholder."software/postgres/baseddata/user_password"}' port: 5432 schema: models threads: 6 type: postgres user: ${config.sops.placeholder."software/postgres/baseddata/user_username"} ''; }; }