resize preview images on upload
Some checks failed
Go / build (push) Has been cancelled

This commit is contained in:
2025-04-15 13:57:28 +02:00
parent 03f1ce361a
commit 27cf7c37cf
2 changed files with 21 additions and 1 deletions

View File

@@ -20,6 +20,7 @@
go
gotools
poppler_utils #get first pdf page to png
imagemagick
tailwindcss
];
};
@@ -71,6 +72,7 @@
environment.systemPackages = [
zineshop-pkg
pkgs.poppler_utils #get first pdf page to png
pkgs.imagemagick
];
systemd.tmpfiles.rules = [
@@ -100,7 +102,7 @@
WorkingDirectory = "/var/lib/zineshop";
ExecStart = pkgs.writeScript "start-zineshop" ''
#! ${pkgs.bash}/bin/bash
PATH="$PATH:${lib.makeBinPath [ pkgs.poppler_utils ]}"
PATH="$PATH:${lib.makeBinPath [ pkgs.poppler_utils pkgs.imagemagick ]}"
${zineshop-pkg}/bin/zineshop
'';
Restart = "on-failure";