fixup! lightsail-tokyo: use homepage-dashboard

This commit is contained in:
Guanran Wang 2024-06-05 18:21:07 +08:00
parent f515e8795e
commit 5a1c3597fd
Signed by: nyancat
GPG key ID: 91F97D9ED12639CF
2 changed files with 1 additions and 15 deletions

View file

@ -59,7 +59,7 @@ ny4.dev {
header /.well-known/webfinger Access-Control-Allow-Origin *
redir /.well-known/webfinger https://mastodon.ny4.dev{uri} permanent
# Homepage Dashboard
# Homepage Dashboard
reverse_proxy localhost:9200
}

View file

@ -198,20 +198,6 @@
settings = {
useEqualHeights = true;
cardBlur = "sm";
background = let
# https://www.pixiv.net/en/artworks/49983419
image = pkgs.fetchurl {
url = "https://i.pximg.net/img-original/img/2015/04/23/12/43/35/49983419_p0.jpg";
hash = "sha256-JZ5VmsjVjZfHXpx3JxzAyYzZppZmgH38AiAA+B0TDiw=";
curlOptsList = ["-e" "https://www.pixiv.net/"];
};
# Crop 100px on top and bottom
cropped = pkgs.runCommandNoCC "49983419_p0.jpg" {} ''
${lib.getExe pkgs.imagemagick} convert ${image} -crop 3500x1600+0+100 $out
'';
in "file://${cropped}";
layout."Services" = {
style = "row";
columns = "4";