From c73e92672884dc062c15e71ac9a9bbf2e026df0d Mon Sep 17 00:00:00 2001 From: Lillian-Violet Date: Sun, 26 Nov 2023 19:10:42 +0100 Subject: [PATCH] Use postgresql_16 --- nixos/queen/nextcloud.nix | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/nixos/queen/nextcloud.nix b/nixos/queen/nextcloud.nix index 6da76f1..189c269 100644 --- a/nixos/queen/nextcloud.nix +++ b/nixos/queen/nextcloud.nix @@ -93,24 +93,22 @@ services.postgresql = { enable = true; - package = pkgs.postgresql; - # Ensure the database, user, and permissions always exist ensureDatabases = ["nextcloud" "onlyoffice" "akkoma"]; - # ensureUsers = [ - # { - # name = "nextcloud"; - # ensurePermissions."DATABASE nextcloud" = "ALL PRIVILEGES"; - # } - # { - # name = "onlyoffice"; - # ensurePermissions."DATABASE onlyoffice" = "ALL PRIVILEGES"; - # } - # { - # name = "akkoma"; - # ensurePermissions."DATABASE akkoma" = "ALL PRIVILEGES"; - # } - # ]; + ensureUsers = [ + { + name = "nextcloud"; + ensurePermissions."DATABASE nextcloud" = "ALL PRIVILEGES"; + } + { + name = "onlyoffice"; + ensurePermissions."DATABASE onlyoffice" = "ALL PRIVILEGES"; + } + { + name = "akkoma"; + ensurePermissions."DATABASE akkoma" = "ALL PRIVILEGES"; + } + ]; }; services.aria2 = {