Fix formatting in Zitadel and PostgreSQL Nix modules
This commit is contained in:
parent
625e79f042
commit
e1614dc3f7
2 changed files with 10 additions and 6 deletions
|
|
@ -444,8 +444,7 @@ in
|
||||||
|> withRef "org" org
|
|> withRef "org" org
|
||||||
|> toResource "${org}_${name}"
|
|> toResource "${org}_${name}"
|
||||||
)
|
)
|
||||||
|> append
|
|> append [
|
||||||
[
|
|
||||||
(forEach "local.extra_users" [ "org" "name" ] {
|
(forEach "local.extra_users" [ "org" "name" ] {
|
||||||
orgId = lib.tfRef "local.orgs[each.value.org]";
|
orgId = lib.tfRef "local.orgs[each.value.org]";
|
||||||
userName = lib.tfRef "each.value.name";
|
userName = lib.tfRef "each.value.name";
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,19 @@
|
||||||
{ config, lib, pkgs, namespace, ... }:
|
{
|
||||||
let
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
namespace,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
inherit (lib) mkIf mkEnableOption;
|
inherit (lib) mkIf mkEnableOption;
|
||||||
|
|
||||||
cfg = config.${namespace}.services.persistance.postgresql;
|
cfg = config.${namespace}.services.persistance.postgresql;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
options.${namespace}.services.persistance.postgresql = {
|
options.${namespace}.services.persistance.postgresql = {
|
||||||
enable = mkEnableOption "Postgresql";
|
enable = mkEnableOption "Postgresql";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Access db with `psql -U postgres`
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
services = {
|
services = {
|
||||||
postgresql = {
|
postgresql = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue