{ pkgs, ... }: { # # fonts # fonts.fontconfig = { enable = true; defaultFonts = { sansSerif = [ "Ubuntu" "Noto Sans CJK TC" ]; serif = [ "Noto Serif CJK TC" ]; monospace = [ "Iosevka" ]; emoji = [ "Noto Color Emoji" ]; }; configFile = { thick-iosevka = { enable = true; # https://www.freedesktop.org/software/fontconfig/fontconfig-user.html # https://gist.github.com/yuttie/adb22a6c07ef8e75d82e48d5484b7ad8 # https://github.com/N1k3YB/CS2FontChanger_ru/blob/5f1d8189220f42286d773c536ff83a49b2556da2/app.py#L227 # # Use the following script to test # for size in (seq 9 15) # echo # echo # for weight in {regular,medium,bold} # echo "weight=$weight:size=$size" # fc-match "mono:weight=$weight:size=$size" # end # end | less text = /* xml */ '' Iosevka weightbold bold weightmedium medium size15 regular size10 medium bold ''; }; }; }; home.packages = [ pkgs.noto-fonts pkgs.noto-fonts-lgc-plus pkgs.noto-fonts-cjk-sans pkgs.noto-fonts-cjk-serif pkgs.noto-fonts-color-emoji pkgs.noto-fonts-emoji-blob-bin pkgs.ubuntu-classic pkgs.Iosevka ]; home.file = { ".xscreensaver".source = "${./xscreensaver/.xscreensaver}"; ".wallpaper".source = "${pkgs.wallpapers.packages.serial_experiments_lain.lain_windows_error}"; }; xdg.configFile = { "xmonad".source = "${./xmonad}"; }; home.pointerCursor = { x11.enable = true; gtk.enable = true; name = "Posy_Cursor_Black"; package = pkgs.posy-cursors; size = 72; }; xresources.properties."Xft.dpi" = 150; i18n.inputMethod = { enable = true; type = "fcitx5"; }; xdg.mimeApps = let associations = { "x-scheme-handler/mailto" = [ "org.gnome.Evolution.desktop" ]; }; in { enable = true; associations.added = associations; defaultApplications = associations; }; }