mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-09-29 07:32:58 +00:00
Merge pull request #323641 from XenGi/fix-freshrss
nixos/freshrss: add ability to use socket path
This commit is contained in:
commit
0fbc43eaea
@ -281,7 +281,10 @@ in
|
||||
${if cfg.database.passFile != null then "--db-password" else null} = ''"$(cat ${cfg.database.passFile})"'';
|
||||
${if cfg.database.user != null then "--db-user" else null} = ''"${cfg.database.user}"'';
|
||||
${if cfg.database.tableprefix != null then "--db-prefix" else null} = ''"${cfg.database.tableprefix}"'';
|
||||
# hostname:port e.g. "localhost:5432"
|
||||
${if cfg.database.host != null && cfg.database.port != null then "--db-host" else null} = ''"${cfg.database.host}:${toString cfg.database.port}"'';
|
||||
# socket path e.g. "/run/postgresql"
|
||||
${if cfg.database.host != null && cfg.database.port == null then "--db-host" else null} = ''"${cfg.database.host}"'';
|
||||
});
|
||||
in
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user