{ config, lib, pkgs, ... }: let loc = config.local; colo = loc.scheme; in { environment.etc = { "emoji.json".source = builtins.fetchurl { url = "https://raw.githubusercontent.com/github/gemoji/0eca75db9301421efc8710baf7a7576793ae452a/db/emoji.json"; sha256 = "sha256-sXSuKusyG1L2Stuf9BL5ZqfzOIOdeAeE3RXcrXAsLdY="; }; }; environment.systemPackages = with pkgs; [ (writeShellScriptBin "bemenu-colored" '' bemenu -C --single-instance -B 0 -M 0 --hp 6 \ --fn "${loc.font.name} ${toString (loc.font.size - 1)}" -H ${toString ((loc.font.size * 2) - 4)} \ --cf "#${colo.foreground}" --cb "#${colo.background}" \ --hf "#${colo.background}" --hb "#${colo.color4}" \ --nf "#${colo.foreground}" --nb "#${colo.background}" \ --ff "#${colo.foreground}" --fb "#${colo.background}" \ --af "#${colo.foreground}" --ab "#${colo.background}" -p "" '') ] ++ (lib.lists.forEach loc.scripts.imports (x: pkgs.writeTextFile { name = x; text = (builtins.readFile ../../scripts/desktop/${x}); executable = true; destination = "/bin/${x}"; })); }