nixos/roundcube: add example for database.passwordFile

This commit is contained in:
h7x4 2024-10-13 00:15:47 +02:00
parent b1ea4a36d6
commit 7467f7d59f
No known key found for this signature in database
GPG Key ID: 9F2F7D8250F35146

View File

@ -55,7 +55,12 @@ in
default = "";
};
passwordFile = lib.mkOption {
type = lib.types.str;
type = lib.types.path;
example = lib.literalExpression ''
pkgs.writeText "roundcube-postgres-passwd.txt" '''
hostname:port:database:username:password
'''
'';
description = ''
Password file for the postgresql connection.
Must be formatted according to PostgreSQL .pgpass standard (see https://www.postgresql.org/docs/current/libpq-pgpass.html)