nixos/pkgs/wallpapers.nix
ulic-youthlic 6a7b5838bc
Some checks are pending
Test Cachix / tests (Akun) (push) Waiting to run
Test Cachix / tests (Cape) (push) Waiting to run
Test Cachix / tests (Tytonidae) (push) Waiting to run
fix: Remove |> operator to fix ci
2025-11-08 00:12:48 +08:00

21 lines
393 B
Nix

{
srcs,
runCommandLocal,
rootPath,
lib,
}:
let
wallpapers =
with lib;
pipe srcs [
(filterAttrs (name: _value: hasPrefix "wallpaper" name))
(concatMapAttrsStringSep "\n" (name: value: "ln -s ${value.src} $out/${name}"))
];
in
runCommandLocal "wallpapers" { } ''
mkdir -p $out
${wallpapers}
ln -s ${rootPath + "/assets/wallpaper/01.png"} $out/01.png
''