From 12d8820277471d5796eae471eaa3d24ebb5f0949 Mon Sep 17 00:00:00 2001 From: Joshua Barrett Date: Tue, 23 Jun 2026 10:27:18 -0400 Subject: [PATCH] the long-anticipated font-configuration-palooza --- modules/home/profiles/default.nix | 1 + modules/home/profiles/desktop/default.nix | 14 +++++++- modules/home/profiles/fonts.nix | 39 +++++++++++++++++++++++ 3 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 modules/home/profiles/fonts.nix diff --git a/modules/home/profiles/default.nix b/modules/home/profiles/default.nix index fee8708..139a0c5 100644 --- a/modules/home/profiles/default.nix +++ b/modules/home/profiles/default.nix @@ -3,5 +3,6 @@ ./desktop ./ssh.nix ./jj.nix + ./fonts.nix ]; } diff --git a/modules/home/profiles/desktop/default.nix b/modules/home/profiles/desktop/default.nix index e34db36..85e2f2f 100644 --- a/modules/home/profiles/desktop/default.nix +++ b/modules/home/profiles/desktop/default.nix @@ -19,9 +19,9 @@ in { ssh.enable = lib.mkDefault true; jj.enable = lib.mkDefault true; emacs.enable = lib.mkDefault true; + fonts.enable = lib.mkDefault true; }; home.packages = with pkgs; [ - terminus_font syncthing calibre discord @@ -73,6 +73,18 @@ in { package = pkgs.terminus_font; name = "Terminus"; }; + serif = { + package = pkgs.ibm-plex; + name = "IBM Plex"; + }; + sansSerif = { + package = pkgs.ibm-plex; + name = "IBM Plex Sans"; + }; + emoji = { + package = pkgs.noto-fonts-color-emoji; + name = "Noto Color Emoji"; + }; }; polarity = "dark"; cursor = { diff --git a/modules/home/profiles/fonts.nix b/modules/home/profiles/fonts.nix new file mode 100644 index 0000000..4eb445b --- /dev/null +++ b/modules/home/profiles/fonts.nix @@ -0,0 +1,39 @@ +{ + pkgs, + lib, + config, + ... +}: let + cfg = config.profiles.fonts; +in { + options = { + profiles.fonts = { + enable = + lib.mkEnableOption "install all the fonts (for graphical environments)"; + }; + }; + config = lib.mkIf cfg.enable { + home.packages = with pkgs; [ + b612 + bqn386 + corefonts + cozette + departure-mono + emacs-all-the-icons-fonts + et-book + fairfax-hd + fontconfig + ibm-plex + inter + nerd-fonts.symbols-only + noto-fonts + noto-fonts-cjk-sans + noto-fonts-color-emoji + noto-fonts-monochrome-emoji + roboto + terminus_font + uiua386 + vista-fonts + ]; + }; +} -- 2.51.2