-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.nix
121 lines (105 loc) · 3.49 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
{ config, flakePath, lib, pkgs, ... }:
let
dir = "${flakePath config}/home-manager/features/gnome";
in
{
imports = [
./paperwm.nix
];
home.packages = with pkgs; [
gnome.gnome-tweaks
];
gnomeExtensions = {
enable = true;
enabledExtensionUuids = [
];
};
xdg.configFile."mimeapps.list".source = config.lib.file.mkOutOfStoreSymlink "${dir}/mimeapps.list";
dconf.settings = {
"org/gnome/desktop/datetime" = { automatic-timezone = false; };
"org/gnome/system/location" = { enabled = false; }; # Location required for automatic time zone
"org/gnome/desktop/calendar".show-weekdate = true;
"org/gnome/desktop/interface" = {
color-scheme = "prefer-dark";
font-antialiasing = "grayscale";
font-hinting = "slight";
# Older GTK apps don't use the above color-scheme setting. For those set
# the legacy theme to a dark one
gtk-theme = "Adwaita-dark";
};
"org/gnome/desktop/input-sources" = {
sources = [
(lib.hm.gvariant.mkTuple [ "xkb" "us" ])
(lib.hm.gvariant.mkTuple [ "xkb" "us+dvorak" ])
];
xkb-options = [
"caps:ctrl_modifier"
"compose:menu"
"terminate:ctrl_alt_bksp"
];
};
"org/gnome/settings-daemon/plugins/media-keys" = {
"screensaver" = [ "<Control><Super>l" ]; # lock screen
# Makes media keys change volume by a smaller increment
"volume-step" = 2;
};
"org/gnome/shell" = {
favorite-apps = [
"org.gnome.Nautilus.desktop"
"org.gnome.Software.desktop"
"firefox.desktop"
"neovide.desktop"
"md.obsidian.Obsidian.desktop"
"kitty.desktop"
"chrome-cinhimbnkkaeohfgghhklpknlkffjgod-Default.desktop" # TODO: match up with chrome apps in home-manager config
];
};
"org/gnome/shell/keybindings" = {
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 = [ "" ];
toggle-overview = [ "<Super>v" ]; # <Super> is taken by AATS
};
"org/gnome/shell/extensions/advanced-alt-tab-window-switcher" = {
app-switcher-popup-fav-apps = false;
app-switcher-popup-filter = 2;
app-switcher-popup-include-show-apps-icon = false;
app-switcher-popup-search-pref-running = true;
enable-super = false;
hot-edge-position = 0;
super-double-press-action = 3;
super-key-mode = 3;
switcher-popup-hot-keys = false;
switcher-popup-interactive-indicators = true;
switcher-popup-position = 3;
switcher-popup-timeout = 0;
switcher-ws-thumbnails = 2;
win-switcher-popup-filter = 2;
win-switcher-popup-order = 1;
};
"org/gnome/shell/extensions/gtktitlebar" = {
hide-window-titlebars = "always";
restrict-to-primary-screen = false;
};
"org/gnome/shell/extensions/horizontal-workspace-indicator" = {
icons-style = "lines";
};
"org/gnome/shell/extensions/runcat" = {
displaying-items = "character-only";
idle-threshold = 10;
};
"org/gnome/GWeather" = {
temperature-unit = "centigrade";
};
};
}