From f7b176f048cd4ff677ad67a349b5bfcaa0f8df38 Mon Sep 17 00:00:00 2001 From: Lillian-Violet Date: Sat, 25 Nov 2023 14:49:56 +0100 Subject: [PATCH] Setup db --- nixos/queen/akkoma.nix | 9 ++++++++- nixos/queen/nextcloud.nix | 6 +++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/nixos/queen/akkoma.nix b/nixos/queen/akkoma.nix index bb63518..9a11bed 100644 --- a/nixos/queen/akkoma.nix +++ b/nixos/queen/akkoma.nix @@ -29,9 +29,16 @@ name = "GLaDTheresCake Akkoma"; email = "akkoma@gladtherescake.eu"; notify_email = "no-reply@akkoma.gladtherescake.eu"; + emails.mailer = { + enabled = true; + adapter = "Swoosh.Adapters.Sendmail"; + cmd_path = "/run/wrappers/bin/sendmail"; + cmd_args = "-N delay,failure,success"; + qmail = true; + }; description = "Lillian's Akkoma server!"; languages = ["en" "nl"]; - registrations_open = true; + registrations_open = false; max_pinned_statuses = 10; cleanup_attachments = true; }; diff --git a/nixos/queen/nextcloud.nix b/nixos/queen/nextcloud.nix index 9d18d31..189c269 100644 --- a/nixos/queen/nextcloud.nix +++ b/nixos/queen/nextcloud.nix @@ -94,7 +94,7 @@ enable = true; # Ensure the database, user, and permissions always exist - ensureDatabases = ["nextcloud" "onlyoffice"]; + ensureDatabases = ["nextcloud" "onlyoffice" "akkoma"]; ensureUsers = [ { name = "nextcloud"; @@ -104,6 +104,10 @@ name = "onlyoffice"; ensurePermissions."DATABASE onlyoffice" = "ALL PRIVILEGES"; } + { + name = "akkoma"; + ensurePermissions."DATABASE akkoma" = "ALL PRIVILEGES"; + } ]; };