talon: add support that works -around- nix

This commit is contained in:
Kate 2024-11-15 14:33:14 -07:00
parent 7f4bbdf8a1
commit bae380fdd3
3 changed files with 32 additions and 0 deletions

View file

@ -13,5 +13,6 @@
(normalizeModule ./kakoune.hm.nix)
(normalizeModule ./kakoune-lsp.hm.nix)
(normalizeModule ./git.hm.nix)
(normalizeModule ./talon.hm.nix)
];
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 193 KiB

View file

@ -0,0 +1,31 @@
{ pkgs, config, ... }:
{
# talon configuration
home.file.".talon/user".source = ../../../talon;
# talon -program-
home.file.".talon/core".source = fetchTarball {
url = "https://talonvoice.com/dl/latest/talon-linux.tar.xz";
sha256 = "0n7538lq79wwh0djihpkhin3iqmvrmsws16dhfmck65kk67jj4wl";
};
# talon -runner-
home.file.".talon/bin/talon" = {
executable = true;
text = ''
#!${pkgs.bash}/bin/bash
set -ue
base=/home/deprekated/.talon/core
unset QT_AUTO_SCREEN_SCALE_FACTOR QT_SCALE_FACTOR
${pkgs.steam-run}/bin/steam-run env LC_NUMERIC=C QT_PLUGIN_PATH="$base/lib/plugins" LD_LIBRARY_PATH="$base/lib:$base/resources/python/lib:$base/resources/pypy/lib" "$base/talon" "$@"
'';
};
# talon desktop file
xdg.desktopEntries.talon = {
name = "Talon Voice";
exec = "/home/deprekated/.talon/bin/talon";
icon = ./talon-community-logo.png;
};
}