mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-25 06:11:55 -05:00
alacritty: migrate to font modules
This commit is contained in:
parent
ada438f374
commit
9a285c0c27
|
@ -2,8 +2,10 @@
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}: {
|
}: let
|
||||||
config = lib.mkIf config.ar.home.apps.alacritty.enable {
|
cfg = config.ar.home;
|
||||||
|
in {
|
||||||
|
config = lib.mkIf cfg.apps.alacritty.enable {
|
||||||
programs.alacritty = {
|
programs.alacritty = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
@ -11,8 +13,8 @@
|
||||||
draw_bold_text_with_bright_colors = true;
|
draw_bold_text_with_bright_colors = true;
|
||||||
|
|
||||||
primary = {
|
primary = {
|
||||||
background = "${config.ar.home.theme.colors.background}";
|
background = "${cfg.theme.colors.background}";
|
||||||
foreground = "${config.ar.home.theme.colors.text}";
|
foreground = "${cfg.theme.colors.text}";
|
||||||
};
|
};
|
||||||
|
|
||||||
transparent_background_colors = true;
|
transparent_background_colors = true;
|
||||||
|
@ -20,7 +22,7 @@
|
||||||
|
|
||||||
font = {
|
font = {
|
||||||
normal = {
|
normal = {
|
||||||
family = "UbuntuSans Nerd Font";
|
family = cfg.theme.font.monospaceFont.name;
|
||||||
style = "Regular";
|
style = "Regular";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue