mirror of
https://codeberg.org/privacy1st/nix-git
synced 2024-11-21 22:03:19 +01:00
fix: wallpaper size
This commit is contained in:
parent
e71fe0f36b
commit
28c12949de
@ -1,7 +1,7 @@
|
|||||||
{ pkgs, lib }:
|
{ pkgs, lib }:
|
||||||
let
|
let
|
||||||
# Width of our display.
|
# Width of our display.
|
||||||
max-width = "1080";
|
max-width = "1920";
|
||||||
in
|
in
|
||||||
pkgs.stdenv.mkDerivation rec{
|
pkgs.stdenv.mkDerivation rec{
|
||||||
name = "yoda-wallpaper";
|
name = "yoda-wallpaper";
|
||||||
@ -13,7 +13,7 @@ in
|
|||||||
installPhase = ''
|
installPhase = ''
|
||||||
set -eu -o pipefail
|
set -eu -o pipefail
|
||||||
mkdir -p $out
|
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
|
${pkgs.imagemagick}/bin/magick $src -resize '${max-width}>' $out/img.png
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user