nixos/pkgs/wallpapers.nix

15 lines
379 B
Nix

{
srcs,
runCommandNoCCLocal,
rootPath,
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
${wallpapers}
ln -s ${rootPath + "/assets/wallpaper/01.png"} $out/01.png
''