From b5020e7944ccabea6463d6d748a6ee6f486b6b1d Mon Sep 17 00:00:00 2001 From: caem Date: Wed, 20 Sep 2023 15:15:08 +0200 Subject: [PATCH] Add Akkoma service --- packages/akkoma/package.nix | 33 +++++++++++++++++++++++++++++++++ systems/dirae.nix | 2 +- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 packages/akkoma/package.nix diff --git a/packages/akkoma/package.nix b/packages/akkoma/package.nix new file mode 100644 index 0000000..49eb9b1 --- /dev/null +++ b/packages/akkoma/package.nix @@ -0,0 +1,33 @@ +{ pkgs, ... }: + +{ + services.akkoma = { + enable = true; + + nginx = { + enableACME = true; + forceSSL = true; + }; + + config = { + ":pleroma" = { + ":instance" = { + name = "Dirae"; + description = "This server uses NixOS btw"; + email = "caem@dirae.org"; + registration_open = false; + }; + + "Pleroma.Upload".filters = map (pkgs.formats.elixirConf { }).lib.mkRaw [ + "Pleroma.Upload.Filter.Exiftool" + "Pleroma.Upload.Filter.Dedupe" + "Pleroma.Upload.Filter.AnonymizeFilename" + ]; + }; + + "Pleroma.Web.Endpoint" = { + url.host = "social.dirae.org"; + }; + }; + }; +} diff --git a/systems/dirae.nix b/systems/dirae.nix index 3da3e58..cb82f97 100644 --- a/systems/dirae.nix +++ b/systems/dirae.nix @@ -10,9 +10,9 @@ ../packages/sshd/package.nix ../packages/mailserver/package.nix ../packages/nginx/dirae.nix -# ../packages/gitlab/package.nix ../packages/forgejo/dirae.nix ../packages/synapse/package.nix + ../packages/akkoma/package.nix ]; boot = {