diff options
| author | seth <[email protected]> | 2023-03-05 09:39:31 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2023-03-05 09:39:31 -0500 |
| commit | 11a22f6bf60fc1adf7d797d1ffbda573c4718239 (patch) | |
| tree | 35da484fce378e8059f2a6c12d3ce4715bc13ce1 /hosts | |
| parent | ff7c8d15a50889a5bcc2e45b16ea1901f018b8fd (diff) | |
simplify fonts config
Diffstat (limited to 'hosts')
| -rw-r--r-- | hosts/common/fonts.nix | 46 |
1 files changed, 20 insertions, 26 deletions
diff --git a/hosts/common/fonts.nix b/hosts/common/fonts.nix index 5fc180e..698b4fb 100644 --- a/hosts/common/fonts.nix +++ b/hosts/common/fonts.nix @@ -2,32 +2,26 @@ pkgs, desktop, ... -}: let - gui = desktop != ""; -in { +}: +if desktop != "" +then { fonts = { - enableDefaultFonts = gui; - fonts = - if gui - then - with pkgs; [ - corefonts - fira-code - (nerdfonts.override {fonts = ["FiraCode"];}) - noto-fonts - noto-fonts-extra - noto-fonts-emoji - noto-fonts-cjk-sans - ] - else []; - fontconfig.defaultFonts = - if gui - then { - serif = ["Noto Serif"]; - sansSerif = ["Noto Sans"]; - emoji = ["Noto Color Emoji"]; - monospace = ["Fira Code"]; - } - else {}; + enableDefaultFonts = true; + fonts = with pkgs; [ + corefonts + fira-code + (nerdfonts.override {fonts = ["FiraCode"];}) + noto-fonts + noto-fonts-extra + noto-fonts-emoji + noto-fonts-cjk-sans + ]; + fontconfig.defaultFonts = { + serif = ["Noto Serif"]; + sansSerif = ["Noto Sans"]; + emoji = ["Noto Color Emoji"]; + monospace = ["Fira Code"]; + }; }; } +else {} |
