-
Notifications
You must be signed in to change notification settings - Fork 1
/
home.nix
151 lines (137 loc) · 3.11 KB
/
home.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
{ lib, pkgs, ... }:
{
home.username = "stusmall";
home.homeDirectory = "/home/stusmall";
home.stateVersion = "22.11";
nixpkgs.config.allowUnfree = true;
home.packages = with pkgs; [
alacritty
chromium
dig
gnupg
htop
jq
libreoffice-fresh
openssl
pciutils
ripgrep
meld
nil
nixpkgs-fmt
nmap
tokei
tree
usbutils
whois
vlc
zellij
];
home.sessionVariables = { };
programs.alacritty = {
enable = true;
settings = {
window = {
# This along with explicitly setting the cursor theme helps fix my issue where I couldn't grab the side of the window to resize
dynamic_padding = true;
};
};
};
programs.bash = {
enable = true;
bashrcExtra = ''
# Always open terminal in zellij session
eval "$(zellij setup --generate-auto-start bash)"
# Needed to use yubkiey for SSH key
export GPG_TTY="$(tty)"
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
'';
};
programs.direnv = {
enable = true;
};
services.gpg-agent = {
enable = true;
enableScDaemon = true;
enableSshSupport = true;
defaultCacheTtl = 60;
maxCacheTtl = 120;
pinentryPackage = pkgs.pinentry-gnome3;
};
programs.git = {
enable = true;
userName = "Stu Small";
userEmail = "stuart.alan.small@gmail.com";
extraConfig = {
core = {
editor = "hx";
compression = 9;
};
init = {
defaultBranch = "main";
};
pull = {
rebase = true;
};
push = {
autoSetupRemote = true;
};
};
};
programs.helix = {
enable = true;
};
programs.zellij = {
enable = true;
settings = {
ui = {
pane_frames = {
hide_session_name = true;
};
};
};
};
dconf.settings = {
"org/gnome/desktop/interface" = {
color-scheme = "prefer-dark";
# Added for: https://github.com/alacritty/alacritty/issues/4780#issuecomment-859481392
cursor-theme = "Adwaita";
show-battery-percentage = true;
};
"org/gnome/desktop/screensaver" = {
lock-enabled = true;
};
# Screen blanks after 15 minutes
"org/gnome/desktop/session" = {
idle-delay = lib.hm.gvariant.mkUint32 900;
};
"org/gnome/desktop/notifications" = {
show-in-lock-screen = false;
};
# Suspend after 15 minutes
"org/gnome/settings-daemon/plugins/power" = {
sleep-inactive-ac-type = "suspend";
sleep-inactive-ac-timeout = 900;
sleep-inactive-battery-type = "suspend";
sleep-inactive-battery-timeout = 900;
};
"org/gnome/shell" = {
enabled-extensions = [
"appindicatorsupport@rgcjonas.gmail.com"
"dash-to-dock@micxgx.gmail.com"
];
favorite-apps = [
"Alacritty.desktop"
"firefox.desktop"
"rust-rover.desktop"
"webstorm.desktop"
"signal-desktop.desktop"
];
};
"org/gnome/shell/extensions/dash-to-dock" = {
apply-custom-theme = true;
};
"org/gnome/system/location" = {
enabled = false;
};
};
}