From 2750e7a65b8666b5c87e0387e0f0de09e4f5db65 Mon Sep 17 00:00:00 2001 From: Lillian-Violet Date: Thu, 23 Nov 2023 20:16:43 +0100 Subject: [PATCH] Try and set database for onlyoffice --- nixos/queen/nextcloud.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/nixos/queen/nextcloud.nix b/nixos/queen/nextcloud.nix index 8d59b5d..8807fe2 100644 --- a/nixos/queen/nextcloud.nix +++ b/nixos/queen/nextcloud.nix @@ -76,6 +76,9 @@ services.onlyoffice = { enable = true; hostname = "onlyoffice.gladtherescake.eu"; + postgresHost = "/run/postgesql"; + postgresUser = "onlyoffice"; + postgresName = "onlyoffice"; jwtSecretFile = config.sops.secrets."local.json".path; }; @@ -84,12 +87,16 @@ enable = true; # Ensure the database, user, and permissions always exist - ensureDatabases = ["nextcloud"]; + ensureDatabases = ["nextcloud" "onlyoffice"]; ensureUsers = [ { name = "nextcloud"; ensurePermissions."DATABASE nextcloud" = "ALL PRIVILEGES"; } + { + name = "onlyoffice"; + ensurePermissions."DATABASE onlyoffice" = "ALL PRIVILEGES"; + } ]; };