{ config, lib, pkgs, ... }: with lib; { services.xserver = { enable = true; exportConfiguration = true; }; console.useXkbConfig = true; xdg.sounds.enable = false; environment.systemPackages = with pkgs; [ xmodmap xinit xev xdpyinfo xclip xfontsel ]; fonts = { fontDir.enable = true; enableDefaultPackages = false; fontconfig = { antialias = true; useEmbeddedBitmaps = true; defaultFonts = { monospace = [ "Office Code Pro" ]; sansSerif = [ "Source Sans Pro" ]; serif = [ "Source Serif Pro" ]; }; localConf = '' medium false ''; }; packages = with pkgs; [ corefonts font-misc-misc font-cursor-misc ] ++ lib.optionals config.fonts.fontconfig.antialias [ cantarell-fonts ibm-plex noto-fonts-color-emoji office-code-pro source-code-pro source-sans-pro source-serif-pro ]; }; }