Fix formatting in Zitadel and PostgreSQL Nix modules

This commit is contained in:
Chris Kruining 2026-02-23 08:17:01 +01:00
parent 625e79f042
commit e1614dc3f7
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2
2 changed files with 10 additions and 6 deletions

View file

@ -444,8 +444,7 @@ in
|> withRef "org" org
|> toResource "${org}_${name}"
)
|> append
[
|> append [
(forEach "local.extra_users" [ "org" "name" ] {
orgId = lib.tfRef "local.orgs[each.value.org]";
userName = lib.tfRef "each.value.name";

View file

@ -1,14 +1,19 @@
{ config, lib, pkgs, namespace, ... }:
let
{
config,
lib,
pkgs,
namespace,
...
}: let
inherit (lib) mkIf mkEnableOption;
cfg = config.${namespace}.services.persistance.postgresql;
in
{
in {
options.${namespace}.services.persistance.postgresql = {
enable = mkEnableOption "Postgresql";
};
# Access db with `psql -U postgres`
config = mkIf cfg.enable {
services = {
postgresql = {