mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
feat: fix secrets permissions, move ./packages to flake outputs
This commit is contained in:
14
packages/image-convert-tolino.nix
Normal file
14
packages/image-convert-tolino.nix
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
writers,
|
||||
imagemagick,
|
||||
}:
|
||||
writers.writeDashBin "image-convert-tolino" ''
|
||||
source_image="$1"
|
||||
|
||||
if [ -e "$source_image" ]; then
|
||||
${imagemagick}/bin/convert -type Grayscale -resize 758x1024 "$source_image" "suspend.jpg"
|
||||
else
|
||||
echo >/dev/stderr "$1 must exist."
|
||||
exit 1
|
||||
fi
|
||||
''
|
||||
Reference in New Issue
Block a user