From 2e52b80529b09829b67199bd888354a64c2578db Mon Sep 17 00:00:00 2001 From: sefidel Date: Fri, 21 Jan 2022 20:51:39 +0900 Subject: nixos/alpha: install fonts system-wide --- nixos/alpha/configuration.nix | 47 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) (limited to 'nixos/alpha') diff --git a/nixos/alpha/configuration.nix b/nixos/alpha/configuration.nix index dddd774..0825140 100644 --- a/nixos/alpha/configuration.nix +++ b/nixos/alpha/configuration.nix @@ -83,6 +83,53 @@ systemd.extraConfig = "RebootWatchdogSec=5"; + fonts = { + fontDir.enable = true; + + fonts = with pkgs; [ + iosevka-pure-bin + ctrld-font + sarasa-gothic + scientifica + siji + jetbrains-mono + twemoji-color-font + emacs-all-the-icons-fonts + (nerdfonts.override { fonts = [ "Iosevka" "JetBrainsMono" ]; }) + ]; + + fontconfig = { + enable = true; + + defaultFonts = { + serif = [ + "Sarasa Gothic C" + "Sarasa Gothic J" + "Sarasa Gothic K" + ]; + + sansSerif = [ + "Sarasa Gothic C" + "Sarasa Gothic J" + "Sarasa Gothic K" + ]; + + monospace = [ + "CtrlD" + "scientifica" + "Iosevka Pure" + "Iosevka Nerd Font" + "JetBrainsMono Nerd Font" + ]; + + emoji = [ + "Siji" + "Twitter Color Emoji" + ]; + }; + }; + }; + programs = { sway = { enable = true; -- cgit 1.4.1