summary refs log tree commit diff stats
path: root/system/settings/services/xserver.nix
blob: 4c47679469f77b73aab949042d303f614678eaea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
{ config, lib, pkgs, ... }:

with lib;
{ services.xserver = {
    enable = true;
    enableCtrlAltBackspace = true;
    exportConfiguration = true;
  };

  i18n.consoleUseXkbConfig = true;

  environment.systemPackages = with pkgs; [
    xorg.xmodmap
    xorg.xinit
    xorg.xev
    xorg.xdpyinfo
    xclip
    xfontsel

    bibata-cursors

    arc-theme
    arc-icon-theme

    gtk-engine-murrine
    gtk_engines
  ];

  fonts = {
    enableFontDir = true;
    enableDefaultFonts = false;
    fontconfig = {
      antialias = true;
      subpixel = mkIf config.fonts.fontconfig.antialias {
        lcdfilter = "light";
      };
      ultimate = mkIf config.fonts.fontconfig.antialias {
        enable = true;
        preset = "ultimate3";
        substitutions = "ms";
      };
      useEmbeddedBitmaps = !config.fonts.fontconfig.antialias;
      defaultFonts = {
        monospace = [ "Source Code Pro" ];
        sansSerif = [ "Tahoma" ];
        serif = [ "Times New Roman" ];
      };
    };
    fonts = with pkgs; [
      gohufont
      proggyfonts
      tamsyn
      terminus_font

      corefonts

      fantasque-sans-mono
      emacs-all-the-icons-fonts
      font-awesome_5
      xorg.fontmiscmisc
      xorg.fontcursormisc
      xorg.fontbhlucidatypewriter100dpi
    ] ++ lib.optionals config.fonts.fontconfig.antialias [
      fira
      fira-code
      fira-mono
      go-font
      ibm-plex

      liberation_ttf
      mononoki
      roboto
      roboto-mono
      roboto-slab
      source-code-pro
      source-sans-pro
      source-serif-pro
    ];
  };
}