Charlotte 🦝 Delenk
80c13939e8
All checks were successful
Hydra packages.aarch64-linux.package-updater Hydra build #27616 of nixos-config:pr618:packages.aarch64-linux.package-updater
Hydra packages.aarch64-linux.element-desktop Hydra build #27615 of nixos-config:pr618:packages.aarch64-linux.element-desktop
Hydra nixosConfigurations.thinkrac Hydra build #27658 of nixos-config:pr618:nixosConfigurations.thinkrac
Hydra nixosConfigurations.rainbow-resort Hydra build #27657 of nixos-config:pr618:nixosConfigurations.rainbow-resort
18 lines
503 B
Nix
18 lines
503 B
Nix
{ config, lib, ... }:
|
|
{
|
|
services.pgbouncer = {
|
|
enable = config.services.postgresql.enable;
|
|
settings = {
|
|
pgbouncer = {
|
|
listen_addr = "localhost";
|
|
auth_type = "scram-sha-256";
|
|
auth_file = config.sops.secrets."services/pgbouncer/settings/pgbouncer/auth".path;
|
|
};
|
|
};
|
|
};
|
|
sops.secrets."services/pgbouncer/settings/pgbouncer/auth" =
|
|
lib.mkIf config.services.postgresql.enable
|
|
{
|
|
sopsFile = ./${config.networking.hostName}.yaml;
|
|
};
|
|
}
|