2024-06-25 04:04:39 +03:00
|
|
|
{ pkgs, config, util, ... }: {
|
2024-05-04 23:15:57 +03:00
|
|
|
font = pkgs.runCommandNoCC "font" {} ''
|
|
|
|
cp ${pkgs.nerdfonts.override { fonts = [ "Terminus" ]; }}/share/fonts/truetype/NerdFonts/TerminessNerdFontMono-Regular.ttf $out
|
|
|
|
'';
|
|
|
|
|
|
|
|
colors = util.trimTabs ''
|
2024-06-25 04:04:39 +03:00
|
|
|
background=#${config.module.style.color.bg.dark}
|
|
|
|
foreground=#${config.module.style.color.fg.light}
|
2024-05-04 23:15:57 +03:00
|
|
|
'';
|
|
|
|
|
|
|
|
initScript = util.trimTabs ''
|
|
|
|
[[ -f ~/.termux/font.ttf ]] || {
|
|
|
|
cp ~/.termux/_font.ttf ~/.termux/font.ttf
|
|
|
|
cp ~/.termux/_colors.properties ~/.termux/colors.properties
|
|
|
|
_warn "Termux config installed, please restart."
|
|
|
|
};
|
|
|
|
'';
|
|
|
|
}
|