host(kita): add fallback page

Changed files
+46
systems
+2
systems/kita/configuration.nix
···
{...}: {
imports = [
./certificates
+
./services
+
./networking.nix
];
+5
systems/kita/services/default.nix
···
+
{...}: {
+
imports = [
+
./fallback_page
+
];
+
}
+15
systems/kita/services/fallback_page/default.nix
···
+
{
+
pkgs,
+
_utils,
+
...
+
}: {
+
services.nginx.virtualHosts."_" = _utils.mkVhost {
+
useACMEHost = "mx-nbg.c.soopy.moe";
+
default = true;
+
+
locations."/" = {
+
root = pkgs.callPackage ./package.nix {};
+
tryFiles = "$uri $uri/index.html $uri.html =404";
+
};
+
};
+
}
systems/kita/services/fallback_page/image.png

This is a binary file and will not be displayed.

+14
systems/kita/services/fallback_page/index.html
···
+
<!doctype html>
+
<html lang="en">
+
<head>
+
<title>bokitar</title>
+
<meta name="description" content="gay women" />
+
<style>
+
img {width: 100%; height: 100%; object-fit: contain;}
+
</style>
+
</head>
+
+
<body>
+
<a href="https://www.pixiv.net/en/artworks/119282342"><img src="image.png" alt="Bocchi and Kita from the anime Bocchi the Rock sitting on some bench of a train." /></a>
+
</body>
+
</html>
+10
systems/kita/services/fallback_page/package.nix
···
+
{stdenvNoCC}:
+
stdenvNoCC.mkDerivation (final: {
+
name = "kita-landing";
+
src = ./.;
+
+
installPhase = ''
+
mkdir $out
+
cp ${final.src}/* $out/
+
'';
+
})