nixos/pkgs/wallpapers.nix
ulic-youthlic 1319168f0b
Update flake inputs
1. Use `stdenv.hostPlatform.system` instead of `system`.
2. Use `runCommand` instead of `runCommandNoCC`.
3. Add new nixpkgs instance for neochat.
4. Set niri config to null when other GUI module.
2025-11-02 04:09:52 +08:00

20 lines
378 B
Nix

{
srcs,
runCommandLocal,
rootPath,
lib,
}:
let
wallpapers =
with lib;
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
''