talon: add support that works -around- nix
This commit is contained in:
parent
7f4bbdf8a1
commit
bae380fdd3
3 changed files with 32 additions and 0 deletions
|
@ -13,5 +13,6 @@
|
|||
(normalizeModule ./kakoune.hm.nix)
|
||||
(normalizeModule ./kakoune-lsp.hm.nix)
|
||||
(normalizeModule ./git.hm.nix)
|
||||
(normalizeModule ./talon.hm.nix)
|
||||
];
|
||||
}
|
||||
|
|
BIN
nixos/configs/dotfiles/talon-community-logo.png
Normal file
BIN
nixos/configs/dotfiles/talon-community-logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 193 KiB |
31
nixos/configs/dotfiles/talon.hm.nix
Normal file
31
nixos/configs/dotfiles/talon.hm.nix
Normal 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;
|
||||
};
|
||||
}
|
Loading…
Add table
Reference in a new issue