From 7467f7d59f136ebe0771212e3e80b581fdb95d5b Mon Sep 17 00:00:00 2001 From: h7x4 Date: Sun, 13 Oct 2024 00:15:47 +0200 Subject: [PATCH] nixos/roundcube: add example for `database.passwordFile` --- nixos/modules/services/mail/roundcube.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/mail/roundcube.nix b/nixos/modules/services/mail/roundcube.nix index 1a9a3bdf26b9..337734488e31 100644 --- a/nixos/modules/services/mail/roundcube.nix +++ b/nixos/modules/services/mail/roundcube.nix @@ -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)