Android : Copy font file if missing.

This commit is contained in:
Dmitry Voronin 2024-03-26 02:48:53 +00:00
parent a5dc0c6d5f
commit 699b0a104d

View file

@ -46,7 +46,7 @@ in {
home.file = {
".dotfiles".source = inputs.self;
".ssh/config".source = ./common/ssh/config;
".termux/font.ttf_".source = pkgs.runCommandNoCC "font" {} ''
".termux/_font.ttf".source = pkgs.runCommandNoCC "font" {} ''
cp ${pkgs.nerdfonts.override { fonts = [ "Terminus" ]; }}/share/fonts/truetype/NerdFonts/TerminessNerdFontMono-Regular.ttf $out
'';
};
@ -59,7 +59,13 @@ in {
};
programs.bash = {
enable = true;
bashrcExtra = "source $BASH_PATH/Bashrc.sh";
bashrcExtra = ''
source $BASH_PATH/Bashrc.sh
[[ -f ~/.termux/font.ttf ]] || {
cp ~/.termux/_font.ttf ~/.termux/font.ttf
_warn "Nerd font installed, please restart."
};
'';
};
programs.tmux = {
enable = true;