-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.nix
190 lines (183 loc) · 6.13 KB
/
default.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
{ config, options, pkgs, lib, mylib, ... }:
with lib;
with mylib;
let
cfg = config.my.desktop.gnome;
in
{
options.my.desktop.gnome = with types; {
enable = mkBoolOpt false;
};
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [
qt5.qtwayland
font-manager
dconf
libnotify
alacritty
];
environment.gnome.excludePackages = (with pkgs; [
gnome-photos
gnome-tour
]) ++ (with pkgs.gnome; [
cheese # webcam tool
gnome-music
epiphany # web browser
geary # email reader
evince # document viewer
gnome-characters
totem # video player
tali # poker game
iagno # go game
hitori # sudoku game
atomix # puzzle game
gnome-weather
gnome-maps
]);
services.xserver = {
displayManager.gdm.enable = true;
displayManager.gdm.wayland = true;
desktopManager.gnome.enable = true;
};
services.gnome.core-utilities.enable = true;
services.udev.packages = with pkgs; [ gnome.gnome-settings-daemon ];
my.home = { config, pkgs, ... }: {
home.packages = with pkgs; [
gnome.nautilus
gnome.gnome-shell-extensions
gnomeExtensions.appindicator
gnomeExtensions.pop-shell
];
dconf = {
enable = true;
settings = {
"org/gnome/shell" = {
disable-user-extensions = false;
enabled-extensions = [
];
};
"org/gnome/shell/extensions/user-theme" = {
name = config.gtk.theme.name;
};
"org/gnome/desktop/interface" = {
monospace-font-name = "MesloLGS Nerd Font Mono 10";
color-scheme = "prefer-dark";
};
"org/gnome/desktop/background" = {
primary-color = "#000000";
secondary-color = "#000000";
picture-uri = "file://${../bspwm/wallpaper.jpg}";
picture-uri-dark = "file://${../bspwm/wallpaper.jpg}";
};
"org/gnome/desktop/peripherals/touchpad" = {
tap-to-click = true;
two-finger-scrolling-enabled = true;
};
"org/gnome/mutter" = {
edge-tiling = true;
workspaces-only-on-primary = false;
dynamic-workspaces = false;
};
"org/gnome/desktop/wm/preferences" = {
num-workspaces = 4;
focus-mode = "sloppy";
};
"org/gnome/settings-daemon/plugins/color" = {
night-light-enabled = true;
night-light-temperature = "uint32 3500";
night-light-schedule-automatic = true;
};
"org/gnome/eog/ui" = {
image-gallery = true;
};
# Enable and configure pop-shell
# (see https://github.com/pop-os/shell/blob/master_jammy/scripts/configure.sh)
"org/gnome/shell/extensions/pop-shell" = {
active-hint = true;
};
"org/gnome/desktop/wm/keybindings" = {
minimize = [ "<Super>comma" ];
maximize = [ ];
unmaximize = [ ];
switch-to-workspace-left = [ ];
switch-to-workspace-right = [ ];
move-to-monitor-up = [ ];
move-to-monitor-down = [ ];
move-to-monitor-left = [ ];
move-to-monitor-right = [ ];
move-to-workspace-down = [ ];
move-to-workspace-up = [ ];
switch-to-workspace-down = [ "<Primary><Super>Down" "<Primary><Super>j" ];
switch-to-workspace-up = [ "<Primary><Super>Up" "<Primary><Super>k" ];
toggle-maximized = [ "<Super>f" ];
close = [ "<Super>q" "<Alt>F4" ];
switch-to-workspace-1 = [ "<Super>1" ];
switch-to-workspace-2 = [ "<Super>2" ];
switch-to-workspace-3 = [ "<Super>3" ];
switch-to-workspace-4 = [ "<Super>4" ];
move-to-workspace-1 = [ "<Super><Shift>1" ];
move-to-workspace-2 = [ "<Super><Shift>2" ];
move-to-workspace-3 = [ "<Super><Shift>3" ];
move-to-workspace-4 = [ "<Super><Shift>4" ];
};
"org/gnome/shell/keybindings" = {
open-application-menu = [ ];
toggle-message-tray = [ "<Super>v" ];
toggle-overview = [ ];
switch-to-application-1 = [ ];
switch-to-application-2 = [ ];
switch-to-application-3 = [ ];
switch-to-application-4 = [ ];
switch-to-application-5 = [ ];
switch-to-application-6 = [ ];
switch-to-application-7 = [ ];
switch-to-application-8 = [ ];
switch-to-application-9 = [ ];
};
"org/gnome/mutter/keybindings" = {
toggle-tiled-left = [ ];
toggle-tiled-right = [ ];
};
"org/gnome/settings-daemon/plugins/media-keys" = {
custom-keybindings = [
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/"
];
screensaver = "@as ['<Super>Escape']";
rotate-video-lock-static = [ ];
home = [ "<Super>e" ];
email = [ ];
www = [ ];
terminal = [ ];
};
"org/gnome/mutter/wayland/keybindings" = {
restore-shortcuts = [ ];
};
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0" = {
binding = "<Super>z";
command = "alacritty"; # TODO: use configured "default"
name = "Open Alacritty";
};
};
};
gtk = {
enable = true;
iconTheme = {
name = "Adwaita";
package = pkgs.gnome.adwaita-icon-theme;
};
theme = {
name = "Pop";
package = pkgs.pop-gtk-theme;
};
};
# qt = {
# enable = true;
# platformTheme = "gnome";
# };
};
};
}