From 0350284e93152b7938287ea52b0aab1bc8f89b9e Mon Sep 17 00:00:00 2001 From: sefidel Date: Tue, 7 Feb 2023 02:22:49 +0900 Subject: feat(nixos/cobalt): akkoma: use pleroma icon --- nixos/cobalt/services/akkoma-assets/logo.png | Bin 0 -> 1304 bytes nixos/cobalt/services/akkoma.nix | 17 ++++++++++++++--- 2 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 nixos/cobalt/services/akkoma-assets/logo.png 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 Binary files /dev/null and b/nixos/cobalt/services/akkoma-assets/logo.png differ diff --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" ]; }; -- cgit 1.4.1