remove shitalloverme
This commit is contained in:
parent
adb51ad19f
commit
5f892ece3f
3 changed files with 0 additions and 47 deletions
|
@ -14,7 +14,6 @@
|
|||
./server.nix
|
||||
./wireguard/public-server.nix
|
||||
./services/named-submissive.nix
|
||||
./services/shitalloverme.nix
|
||||
./users/remote-build.nix
|
||||
./services/atticd.nix
|
||||
#./services/minecraft.nix
|
||||
|
|
|
@ -27,7 +27,6 @@
|
|||
./services/peertube
|
||||
./services/rspamd.nix
|
||||
./wireguard/public-server.nix
|
||||
./services/shitalloverme.nix
|
||||
./services/initrd-ssh.nix
|
||||
./wireguard
|
||||
./zfs.nix
|
||||
|
|
|
@ -1,45 +0,0 @@
|
|||
{
|
||||
system,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
input = "${pkgs.lotte-art}/2022-12-27-rexyi-scatych.jxl";
|
||||
sizes = [1 2 4 8 16 32 64 128 256 512 1024 2000];
|
||||
formats = ["jxl" "avif" "heic" "webp" "jpeg" "png"];
|
||||
mkImage = format: size: let
|
||||
pkg = pkgs.stdenvNoCC.mkDerivation {
|
||||
src = pkgs.emptyDirectory;
|
||||
name = "${toString size}.${format}";
|
||||
nativeBuildInputs = with pkgs; [imagemagick];
|
||||
buildPhase = ''
|
||||
mkdir $out
|
||||
convert ${input} -resize ${toString size}x${toString size} $out/${toString size}.${format}
|
||||
'';
|
||||
installPhase = "true";
|
||||
};
|
||||
in "${pkg}/${toString size}.${format}";
|
||||
files = builtins.concatMap (format: map (mkImage format) sizes) formats;
|
||||
shitalloverme = pkgs.stdenvNoCC.mkDerivation {
|
||||
src = pkgs.emptyDirectory;
|
||||
name = "shitallover.me";
|
||||
buildPhase = "true";
|
||||
installPhase = ''
|
||||
mkdir $out
|
||||
ln -sv ${../../extra/shitalloverme.html} $out/index.html
|
||||
for f in ${toString files}; do
|
||||
ln -sv $f $out
|
||||
done
|
||||
'';
|
||||
};
|
||||
in {
|
||||
services.caddy.virtualHosts."shitallover.me" = {
|
||||
useACMEHost = "shitallover.me";
|
||||
logFormat = pkgs.lib.mkForce "";
|
||||
extraConfig = ''
|
||||
import baseConfig
|
||||
|
||||
root * ${shitalloverme}
|
||||
file_server
|
||||
'';
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue