{ lib, pkgs, ... }: let # curlOpts for pixiv, or it returns 403. curlOptsList = ["-e" "https://www.pixiv.net/"]; in { xdg.dataFile = { ### Local "backgrounds/unixcloud.jpg".source = ./wallpapers/unixcloud.jpg; # https://www.deviantart.com/georgegach/art/Unix-Cloud-818259008 "backgrounds/Minato-Aqua.png".source = ./wallpapers/Minato-Aqua.png; # https://t.me/AnotherCreations/600 "backgrounds/Minato-Aqua-Dark.png".source = ./wallpapers/Minato-Aqua-Dark.png; # https://t.me/AnotherCreations/602 ### Online "backgrounds/aqua.png".source = pkgs.fetchurl { inherit curlOptsList; url = "https://i.pximg.net/img-original/img/2023/03/29/01/29/52/106654974_p0.jpg"; # https://www.pixiv.net/en/artworks/106654974 hash = "sha256-mB/D46JCddOlMUtFQu7R0OtRMIoApbT1nnRv0VyzEb8="; }; "backgrounds/genshin1.jpg".source = pkgs.fetchurl { inherit curlOptsList; url = "https://i.pximg.net/img-original/img/2022/09/29/00/00/15/101553430_p0.jpg"; # https://www.pixiv.net/artworks/101553430 hash = "sha256-VMUxBExuA5LDNQVeBBf4btyWsETN0B7pr0bTrBiJHaI="; }; "backgrounds/genshin2.jpg".source = pkgs.fetchurl { url = "https://imglf3.lf127.net/img/7196a1c5f06b5e38/T0FlK2VJTUI4Q1ZGbkhrc0ZWMlpiT3RJU1RQOXdJcGhrS3ZMOTBKdmR3OD0.jpeg"; # https://57friend.lofter.com/post/1d7a55da_2b5bc7172 hash = "sha256-jO8S+WNWfel74+CtMbfd9F78CuyXFK5ka72Br9b10P4="; }; "backgrounds/genshin3.jpg".source = pkgs.fetchurl { inherit curlOptsList; url = "https://i.pximg.net/img-original/img/2022/06/21/20/00/28/99170653_p0.jpg"; # https://www.pixiv.net/artworks/99170653 hash = "sha256-7DmmJRZyJKU06j89X3x5NlOElFhdilIhzQMs3ynZKh4="; }; "backgrounds/summer.jpg".source = let image = pkgs.fetchurl { inherit curlOptsList; url = "https://i.pximg.net/img-original/img/2015/04/23/12/43/35/49983419_p0.jpg"; # https://www.pixiv.net/en/artworks/49983419 hash = "sha256-JZ5VmsjVjZfHXpx3JxzAyYzZppZmgH38AiAA+B0TDiw="; }; in # Crop 100px on top and bottom pkgs.runCommandNoCC "49983419_p0.jpg" {} '' ${lib.getExe pkgs.imagemagick} convert ${image} -crop 3500x1600+0+100 $out ''; "backgrounds/macos-mojave-day.jpg".source = pkgs.fetchurl { url = "https://media.idownloadblog.com/wp-content/uploads/2018/06/macOS-Mojave-Day-wallpaper.jpg"; hash = "sha256-DtIaO7jWkhdU4EqJL8QfAaaajRcME79/O8szk1po/Go="; }; "backgrounds/macos-mojave-night.jpg".source = pkgs.fetchurl { url = "https://media.idownloadblog.com/wp-content/uploads/2018/06/macOS-Mojave-Night-wallpaper.jpg"; hash = "sha256-Zv7uvjSNACpI2Yck22bsA8gwVaju2Yght7y09xko9xw="; }; }; }