summaryrefslogtreecommitdiff
path: root/hosts/common/fonts.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/common/fonts.nix')
-rw-r--r--hosts/common/fonts.nix46
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 {}