From c63cfbd5e3d8e722fd5f7cbb4489cffa43c2006c Mon Sep 17 00:00:00 2001 From: Mikael Voss Date: Sat, 9 Nov 2024 22:43:58 +0100 Subject: [PATCH 1/2] akkoma: Limit banner image width --- config/services/akkoma/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/services/akkoma/default.nix b/config/services/akkoma/default.nix index 17266cf..a094017 100644 --- a/config/services/akkoma/default.nix +++ b/config/services/akkoma/default.nix @@ -26,6 +26,10 @@ extraStatic."static/themes/elly-mod.json" = pkgs.writeText "elly-mod.json" (builtins.readFile ./elly-mod.json); + extraStatic."static/custom.css" = pkgs.writeText "custom.css" '' + .tos-content img { max-width: 100%; } + ''; + extraStatic."static/terms-of-service.html" = inputs.florp-about.packages.${pkgs.system}.default; extraStatic."images/sylvia-ritter-15012323.avif" = inputs.florp-branding.packages.${pkgs.system}.wallpaper; extraStatic."images/florp_banner.avif" = inputs.florp-branding.packages.${pkgs.system}.banner; -- 2.47.0 From f54c23493f08ec8a87a62eab9f4d1d95f14bf7fa Mon Sep 17 00:00:00 2001 From: Mikael Voss Date: Sat, 9 Nov 2024 22:48:48 +0100 Subject: [PATCH 2/2] akkoma: Avoid unnecessary derivation --- config/services/akkoma/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/services/akkoma/default.nix b/config/services/akkoma/default.nix index a094017..299794d 100644 --- a/config/services/akkoma/default.nix +++ b/config/services/akkoma/default.nix @@ -24,7 +24,7 @@ } )); - extraStatic."static/themes/elly-mod.json" = pkgs.writeText "elly-mod.json" (builtins.readFile ./elly-mod.json); + extraStatic."static/themes/elly-mod.json" = ./elly-mod.json; extraStatic."static/custom.css" = pkgs.writeText "custom.css" '' .tos-content img { max-width: 100%; } -- 2.47.0