wallpaper: Add a new wallpaper

This commit is contained in:
ulic-youthlic 2025-07-11 04:21:18 +08:00
parent dcb0c0d7a5
commit 65c921606e
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
4 changed files with 38 additions and 8 deletions

View file

@ -2,11 +2,14 @@
srcs,
runCommandNoCCLocal,
rootPath,
}:
runCommandNoCCLocal "wallpapers" {} ''
mkdir -p $out
lib,
}: let
wallpapers = with lib; srcs |> filterAttrs (name: _value: hasPrefix "wallpaper" name) |> concatMapAttrsStringSep "\n" (name: value: "ln -s ${value.src} $out/${name}");
in
runCommandNoCCLocal "wallpapers" {} ''
mkdir -p $out
ln -s ${srcs."wallpaper_hieda-no-akyuu-touhou.1920x1080.mp4".src} $out/wallpaper_hieda-no-akyuu-touhou.1920x1080.mp4
ln -s ${srcs."wallpaper_outer-wilds.3840x2160.mp4".src} $out/wallpaper_outer-wilds.3840x2160.mp4
ln -s ${rootPath + "/assets/wallpaper/01.png"} $out/01.png
''
${wallpapers}
ln -s ${rootPath + "/assets/wallpaper/01.png"} $out/01.png
''