diff options
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/cobalt/services/akkoma-assets/logo.png | bin | 0 -> 1304 bytes | |||
-rw-r--r-- | nixos/cobalt/services/akkoma.nix | 17 |
2 files changed, 14 insertions, 3 deletions
diff --git a/nixos/cobalt/services/akkoma-assets/logo.png b/nixos/cobalt/services/akkoma-assets/logo.png new file mode 100644 index 0000000..7744b1a --- /dev/null +++ b/nixos/cobalt/services/akkoma-assets/logo.png Binary files differdiff --git a/nixos/cobalt/services/akkoma.nix b/nixos/cobalt/services/akkoma.nix index 7164b3f..c01689a 100644 --- a/nixos/cobalt/services/akkoma.nix +++ b/nixos/cobalt/services/akkoma.nix @@ -3,15 +3,21 @@ let poorObfuscation = y: x: "${x}@${y}"; federation-blocklist = lib.importTOML ./akkoma-assets/blocklist.toml; + + # ifd3f/infra + wrapFile = name: path: + (pkgs.runCommand name { inherit path; } '' + cp -r "$path" "$out" + ''); in { services.akkoma = { enable = true; initDb.enable = true; - # extraStatic = { - # "favicon.png" = - # }; + extraStatic = { + "static/logo.png" = wrapFile "logo.png" ./akkoma-assets/logo.png; + }; config = let inherit ((pkgs.formats.elixirConf { }).lib) mkRaw mkMap; in { ":pleroma"."Pleroma.Web.Endpoint".url.host = "social.sefidel.com"; @@ -27,6 +33,11 @@ in limit = 5000; }; + ":pleroma".":frontend_configurations" = { + pleroma_fe = mkMap { + logo = "/static/logo.png"; + }; + }; ":pleroma".":mrf" = { policies = map mkRaw [ "Pleroma.Web.ActivityPub.MRF.SimplePolicy" ]; }; |