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.
20 lines
378 B
Nix
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
|
|
''
|