Files
nix-bitcoin/modules
Erik Arvstedt 770a4354b4 btcpayserver: fix PostgreSQL 15 user permissions
Since PostgreSQL 15, DB users need to be DB owners to be able to create tables.

We can't use the new `ensureDBOwnerhip` NixOS option [1] to set this up,
because it requires the PostgreSQL user name and the database name to be
identical, which is not the case for btcpayserver.

Instead, we manually issue a PostgreSQL admin statement similar to the one
used by `ensureDBOwnerhip`.

This method of setting up the user is also compatible with older
PostgreSQL versions that come with older NixOS `system.stateVersion`s.

[1] https://github.com/NixOS/nixpkgs/pull/266270
2023-12-12 11:22:38 +01:00
..
2023-09-09 14:35:35 +02:00
2023-08-20 10:54:45 +02:00
2023-06-02 10:49:25 +00:00
2023-12-02 23:01:15 +01:00
2023-10-31 13:44:04 +01:00
2023-10-31 13:44:04 +01:00
2023-10-31 13:44:04 +01:00
2023-09-09 14:35:35 +02:00
2023-10-31 13:44:04 +01:00