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)