fix: wallpaper size

This commit is contained in:
Daniel Langbein 2024-09-22 14:03:36 +02:00
parent e71fe0f36b
commit 28c12949de
Signed by: langfingaz
GPG Key ID: 6C47C753F0823002

View File

@ -1,7 +1,7 @@
{ pkgs, lib }:
let
# Width of our display.
max-width = "1080";
max-width = "1920";
in
pkgs.stdenv.mkDerivation rec{
name = "yoda-wallpaper";
@ -13,7 +13,7 @@ in
installPhase = ''
set -eu -o pipefail
mkdir -p $out
${pkgs.imagemagick}/bin/magick $src -resize '${max-width}>' -quality 85% -interlace Plane -strip $out/img.jpg
${pkgs.imagemagick}/bin/magick $src -resize '${max-width}>' -quality 90% -interlace Plane -strip $out/img.jpg
${pkgs.imagemagick}/bin/magick $src -resize '${max-width}>' $out/img.png
'';
}