From 9fd5ce7074739016e76adf443edc0fbe8767296f Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Fri, 17 Jan 2025 18:45:30 +0100 Subject: [PATCH] use akkoma instead of mastodon --- systems/hetzner/default.nix | 55 +++++++++++++------------------------ 1 file changed, 19 insertions(+), 36 deletions(-) diff --git a/systems/hetzner/default.nix b/systems/hetzner/default.nix index 03061b0..607f016 100644 --- a/systems/hetzner/default.nix +++ b/systems/hetzner/default.nix @@ -95,50 +95,33 @@ in chrootlocalUser = true; }; - services.mastodon = { + services.akkoma = { enable = true; - streamingProcesses = (lib.elemAt config.facter.report.hardware.cpu 0).cores - 1; - localDomain = "nyan.social"; - elasticsearch.host = "127.0.0.1"; - smtp.fromAddress = "mastodon@nyan.social"; - configureNginx = true; - }; + nginx = { + enableACME = true; + forceSSL = true; + }; + config = { + ":pleroma" = { + ":instance" = { + name = "Nyan Social"; + description = "More detailed description"; + email = "admin@nyan.social"; + registration_open = false; + }; - services.opensearch.enable = true; + "Pleroma.Web.Endpoint" = { + url.host = "nyan.social"; + }; + }; + }; + }; users.users.backupftp = { isNormalUser = true; initialPassword = "backupPassword"; }; - containers = { - nyan = { - privateNetwork = true; - hostBridge = "br0"; # Specify the bridge name - localAddress = "192.168.100.5/24"; - config = { - system.stateVersion = "25.05"; - services.nginx = { - virtualHosts."${config.containers.nyan.config.services.mastodon.localDomain}" = { - forceSSL = false; - enableACME = false; - }; - }; - networking = { - firewall = { - enable = true; - allowedTCPPorts = [ - 80 - ]; - allowedUDPPorts = [ - 80 - ]; - }; - }; - }; - }; - }; - disko.devices = { disk = { vdb = {