-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgui.nix
89 lines (75 loc) · 1.79 KB
/
gui.nix
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
87
88
89
# Author: Viacheslav Lotsmanov
# License: MIT https://raw.githubusercontent.com/unclechu/nixos-config/master/LICENSE
args@{ pkgs, lib, config, ... }:
let
sources = import nix/sources.nix;
inherit (import ./constants.nix) xkb keyRepeat wenzelUserName;
esc = lib.escapeShellArg;
in
{
imports = [
gui/xmonad
gui/i3.nix
];
environment = {
variables = {
# XCompose and XIM setup
XMODIFIERS = "@im=none";
QT_IM_MODULE = "xim";
GTK_IM_MODULE = "xim";
};
sessionVariables = {
GTK_THEME = "Adwaita:dark";
};
etc = {
"xdg/gtk-2.0/gtkrc".text = ''
gtk-theme-name = "Adwaita-dark"
gtk-icon-theme-name = "Adwaita"
'';
"xdg/gtk-3.0/settings.ini".text = ''
[Settings]
gtk-theme-name = Adwaita-dark
gtk-application-prefer-dark-theme = true
gtk-icon-theme-name = Adwaita
'';
# Qt4
"xdg/Trolltech.conf".text = ''
[Qt]
style=GTK+
'';
};
};
qt = {
enable = true;
platformTheme = "qt5ct";
style = "kvantum";
};
# X11
services.xserver = {
enable = true;
inherit xkb;
desktopManager = {
# default = "none";
xterm.enable = false;
};
displayManager = {
lightdm = {
enable = true;
greeters.gtk = {
cursorTheme =
let x = config.home-manager.users.${wenzelUserName}.home.pointerCursor;
in { inherit (x) name package size; };
};
};
sessionCommands = ''
${esc pkgs.xorg.xset}/bin/xset r rate ${esc keyRepeat.delay} ${esc keyRepeat.interval}
'';
};
};
services.displayManager.defaultSession = "none+xmonad";
services.libinput.enable = true; # touchpad
services.unclutter = {
enable = false;
timeout = 1;
};
}