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
..
clightning-plugins clboss: 0.13A -> 0.13 2023-09-09 14:35:35 +02:00
deployment examples: add krops deployment method 2021-03-15 18:53:07 +01:00
presets Merge fort-nix/nix-bitcoin#658: presets/wireguard: make compatible with secure-node preset 2023-11-05 09:50:42 +00:00
secrets secrets: add comment 2023-08-20 10:54:45 +02:00
backups.nix treewide: ensure services are started after secrets setup 2023-10-08 13:56:56 +02:00
bitcoind-rpc-public-whitelist.nix bitcoind-rpc-public-whitelist: add getindexinfo 2023-10-30 11:58:24 +01:00
bitcoind.nix bitcoind: update module to v25.0 2023-06-02 10:49:25 +00:00
btcpayserver.nix btcpayserver: fix PostgreSQL 15 user permissions 2023-12-12 11:22:38 +01:00
charge-lnd.nix treewide: use mdDoc for descriptions 2022-12-18 20:01:52 +01:00
clightning-replication.nix treewide: use mdDoc for descriptions 2022-12-18 20:01:52 +01:00
clightning-rest.nix clightning-rest: update module to v0.10.3 2023-06-02 10:49:35 +00:00
clightning.nix Merge fort-nix/nix-bitcoin#653: Revert "clightning: don't cleanup socket on startup" 2023-10-09 07:59:33 +00:00
electrs.nix treewide: ensure services are started after secrets setup 2023-10-08 13:56:56 +02:00
fulcrum.nix treewide: ensure services are started after secrets setup 2023-10-08 13:56:56 +02:00
hardware-wallets.nix treewide: use mdDoc for descriptions 2022-12-18 20:01:52 +01:00
joinmarket-ob-watcher.nix treewide: ensure services are started after secrets setup 2023-10-08 13:56:56 +02:00
joinmarket.nix joinmarket: 0.9.9 -> 0.9.10 2023-12-02 23:01:15 +01:00
lightning-loop.nix treewide: ensure services are started after secrets setup 2023-10-08 13:56:56 +02:00
lightning-pool.nix rtl: fix lnd, lightning-loop connection errors 2023-07-29 19:07:10 +02:00
liquid.nix treewide: ensure services are started after secrets setup 2023-10-08 13:56:56 +02:00
lnd.nix treewide: ensure services are started after secrets setup 2023-10-08 13:56:56 +02:00
lndconnect.nix nodeinfo/lnd: add onion_rest_address 2023-03-11 20:10:55 +01:00
mempool.nix mempool: use recommendedBrotliSettings 2023-12-12 11:22:38 +01:00
modules.nix mempool: add module 2023-10-31 13:44:04 +01:00
netns-isolation.nix mempool: add module 2023-10-31 13:44:04 +01:00
nix-bitcoin.nix add option nix-bitcoin.pkgOverlays 2023-02-02 10:51:40 +01:00
nodeinfo.nix mempool: add module 2023-10-31 13:44:04 +01:00
obsolete-options.nix clboss: 0.13A -> 0.13 2023-09-09 14:35:35 +02:00
onion-addresses.nix treewide: use bool literals for systemd 2023-01-20 13:46:08 +01:00
onion-services.nix mempool: add module 2023-10-31 13:44:04 +01:00
operator.nix treewide: use mdDoc for descriptions 2022-12-18 20:01:52 +01:00
rtl.nix treewide: ensure services are started after secrets setup 2023-10-08 13:56:56 +02:00
security.nix treewide: use mdDoc for descriptions 2022-12-18 20:01:52 +01:00
versioning.nix versioning: improve configVersion description 2023-06-09 21:51:20 +02:00