2024-02-13 06:02:33 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: let
|
2024-02-12 13:52:25 +00:00
|
|
|
# curlOpts for pixiv, or it returns 403.
|
|
|
|
curlOptsList = ["-e" "https://www.pixiv.net/"];
|
|
|
|
in {
|
2023-12-11 09:12:35 +00:00
|
|
|
xdg.dataFile = {
|
|
|
|
### Local
|
|
|
|
"backgrounds/unixcloud.jpg".source = ./wallpapers/unixcloud.jpg; # https://www.deviantart.com/georgegach/art/Unix-Cloud-818259008
|
2023-12-26 05:03:28 +00:00
|
|
|
"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
|
2023-12-11 09:12:35 +00:00
|
|
|
|
|
|
|
### Online
|
|
|
|
"backgrounds/aqua.png".source = pkgs.fetchurl {
|
2024-02-12 13:52:25 +00:00
|
|
|
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=";
|
2023-12-11 09:12:35 +00:00
|
|
|
};
|
2024-02-13 06:02:33 +00:00
|
|
|
"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
|
|
|
|
'';
|
2023-12-11 09:12:35 +00:00
|
|
|
"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=";
|
|
|
|
};
|
2023-11-14 03:22:17 +00:00
|
|
|
};
|
|
|
|
}
|