summary refs log tree commit diff stats
path: root/modules/xserver.nix
blob: 0c8e05fa4f169f738b706beccb06ec0d9cc24ed4 (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
81
82
83
84
85
86
{ config, pkgs, ... }:

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

  environment.sessionVariables = {
    XCURSOR_PATH = [
      "${config.system.path}/share/icons"
      "$HOME/.icons"
      "$HOME/.nix-profile/share/icons/"
    ];
  };

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

    vanilla-dmz

    hicolor_icon_theme
    adapta-gtk-theme
    flat-plat
    paper-gtk-theme
    paper-icon-theme
    numix-gtk-theme
    numix-icon-theme

    gtk-engine-murrine
    gtk_engines
  ];

  fonts = {
    enableFontDir = true;
    enableDefaultFonts = true;
    fontconfig = {
      defaultFonts = {
        monospace = [ "Roboto Mono" ];
        sansSerif = [ "Noto Sans" ];
        serif = [ "Noto Serif" ];
      };
      ultimate = {
        enable = true;
        # presets:
        # ultimate1 ultimate2 ultimate3 ultimate4 ultimate5 osx windowsxp
        preset = "ultimate3";
      };
    };
    fonts = with pkgs; [
      anonymousPro
      cantarell_fonts
      carlito
      cm_unicode
      dejavu_fonts
      fantasque-sans-mono
      fira
      fira-code
      fira-mono
      font-droid
      font-awesome-ttf
      hack-font
      iosevka
      liberation_ttf
      noto-fonts
      mononoki
      opensans-ttf
      paratype-pt-mono
      paratype-pt-sans
      paratype-pt-serif
      roboto
      roboto-mono
      source-code-pro
      source-sans-pro
      source-serif-pro
      terminus_font
      ubuntu_font_family
      xorg.fontxfree86type1
    ];
  };
}