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"; + } ]; };