From 2af4a9bc09bccb74cda5eefb98193b4bbbb0eba5 Mon Sep 17 00:00:00 2001 From: Andreas Brinner Date: Sun, 23 Apr 2023 11:35:04 +0200 Subject: nixos/roundcube: fix PostgreSQL password Extract PostgreSQL database password for Roundcube from .pgpass file. The password file is used in two locations: 1. in the Roundcube config.php 2. in the systemd setup service that initializes the roundcube database These two services need the password in different formats. Keep the password file in PostgreSQL standard format and extract the password for the Roundcube config (see #215986). --- nixos/modules/services/mail/roundcube.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'nixos/modules/services/mail') diff --git a/nixos/modules/services/mail/roundcube.nix b/nixos/modules/services/mail/roundcube.nix index 3aaec145930d..70ec3707dc18 100644 --- a/nixos/modules/services/mail/roundcube.nix +++ b/nixos/modules/services/mail/roundcube.nix @@ -123,7 +123,15 @@ in environment.etc."roundcube/config.inc.php".text = ''