diff --git a/hosts/sisyphe/features/services/akkoma.nix b/hosts/sisyphe/features/services/akkoma.nix index 19a293c..06a6bcc 100644 --- a/hosts/sisyphe/features/services/akkoma.nix +++ b/hosts/sisyphe/features/services/akkoma.nix @@ -27,6 +27,8 @@ let akkoma-overlay = self: super: { akkoma = super.akkoma.overrideAttrs (old: { postPatch = '' + curl -Lo ${theme}.json ${themeUrl} + mv ${theme}.json /static/themes/ cp ${pkgs.writeText "styles.json" styles} $out/priv/static/themes cp ${./akkoma/terms-of-services.html} $out/priv/static/terms-of-service.html ''; @@ -41,7 +43,7 @@ in ":pleroma" = { ":instance" = { name = "e^akkoma + 1 = 0"; - description = "the cuntiest french akkoma instance<3. on aime la mode, les sciences, et la musique. mais ça ne vous empêche pas de parler de n'importe quoi! join us ! par contre c'est 161 ici donc nofaf ou vs serez ban"; + description = "the cuntiest french akkoma instance<3. on aime la mode, les sciences, et la musique."; email = "admin@babychou.me"; registration_open = false; max_pinned_statuses = 1; @@ -64,6 +66,11 @@ in ]; }; ":configurable_from_database" = false; + "frontend_configurations" = { + "pleroma_fe" = { + "theme" = "${theme}"; + }; + }; }; }; @@ -73,16 +80,15 @@ in } encode zstd gzip - reverse_proxy 127.0.0.1:4000 ''; + services.caddy.virtualHosts."${pleromaMediaUrl}".extraConfig = '' log { output file /var/log/caddy/akkoma_media.log } encode zstd gzip - reverse_proxy 127.0.0.1:4000 ''; } diff --git a/hosts/sisyphe/features/services/akkoma/terms-of-services.html b/hosts/sisyphe/features/services/akkoma/terms-of-services.html index 3d411fe..d9fdd13 100644 --- a/hosts/sisyphe/features/services/akkoma/terms-of-services.html +++ b/hosts/sisyphe/features/services/akkoma/terms-of-services.html @@ -1,6 +1,6 @@ -
Cette instance est hébergée en France. Tout contenu doit se conformer aux lois locales.
-Cette instance est hébergée en France. Tout contenu doit se conformer aux lois locales. Si vous créez un compte sur ce site, nous supposerons que vous avez plus de 18 ans.
+