From 9a484e031eb042892139a9ec6368408fd0cf662a Mon Sep 17 00:00:00 2001 From: Reinout Meliesie Date: Sat, 8 Mar 2025 16:29:55 +0100 Subject: [PATCH] Make bookwyrm user owner of database in Bookwyrm NixOS module --- packages/bookwyrm/nixos-module.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/bookwyrm/nixos-module.nix b/packages/bookwyrm/nixos-module.nix index e293aee..c3714dc 100644 --- a/packages/bookwyrm/nixos-module.nix +++ b/packages/bookwyrm/nixos-module.nix @@ -65,7 +65,10 @@ with pkgs . kernelmaft ; postgresql = { enable = true ; ensureUsers = [ - { name = "bookwyrm" ; } + { + name = "bookwyrm" ; + ensureDBOwnership = true ; + } ] ; ensureDatabases = [ "bookwyrm" ] ; } ;