-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.nix
294 lines (272 loc) · 5.93 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
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
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
{
config,
pkgs,
stateVersion,
hostname,
inputs,
system,
username,
...
}: let
home = "/home/${username}";
dotfiles =
config.lib.file.mkOutOfStoreSymlink "${home}/.flake/config";
hostDotfiles =
config.lib.file.mkOutOfStoreSymlink "${home}/.flake/hosts/${hostname}/config";
customPackages = {
neovim-nightly = let
neovim-nightly = inputs.neovim-nightly-overlay.packages.${system}.neovim;
in (pkgs.writeShellScriptBin "nvim-nightly" "exec -a $0 ${neovim-nightly}/bin/nvim $@");
};
gsettingsSchemas = pkgs.gsettings-desktop-schemas;
gsettingsDatadir = "${gsettingsSchemas}/share/gsettings-schemas/${gsettingsSchemas.name}";
in {
programs = {
home-manager.enable = true;
direnv = {
enable = true;
nix-direnv.enable = true;
};
zsh = {
enable = true;
autosuggestion.enable = true;
enableCompletion = true;
enableVteIntegration = true;
initExtra = "source $HOME/.config/zsh/init.zsh";
};
};
services = {
easyeffects = {
enable = true;
preset = "default";
};
};
home = {
inherit stateVersion username;
homeDirectory = home;
sessionVariables = {
GDK_PIXBUF_MODULE_FILE = "${pkgs.librsvg.out}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache";
};
file = {
".gitconfig".source = "${dotfiles}/git/gitconfig";
".gitconfig-garage".source = "${dotfiles}/git/gitconfig-garage";
".gitconfig-opencreek".source = "${dotfiles}/git/gitconfig-opencreek";
".gitignore".source = "${dotfiles}/git/gitignore";
".ssh/config".source = "${dotfiles}/ssh/config";
".tmux.conf".source = "${dotfiles}/tmux/tmux.conf";
};
pointerCursor = {
gtk.enable = true;
name = "Bibata-Modern-Classic";
package = pkgs.bibata-cursors;
size = 24;
};
};
systemd.user.services = {
polkit-agent = {
Unit.Description = "Polkit Agent";
Install.WantedBy = ["graphical-session.target"];
Service = {
Type = "simple";
ExecStart = "${pkgs.lxqt.lxqt-policykit}/bin/lxqt-policykit-agent";
Restart = "on-failure";
};
};
};
xdg = {
configFile = {
"host".source = hostDotfiles;
"bat".source = "${dotfiles}/bat";
"nvim".source = "${dotfiles}/nvim";
"nix".source = "${dotfiles}/nix";
"zsh".source = "${dotfiles}/zsh";
"waybar".source = "${dotfiles}/waybar";
"kitty".source = "${dotfiles}/kitty";
"starship.toml".source = "${dotfiles}/starship/starship.toml";
"hypr".source = "${dotfiles}/hypr";
"tealdeer".source = "${dotfiles}/tealdeer";
"mako".source = "${dotfiles}/mako";
"wofi".source = "${dotfiles}/wofi";
"lazygit/config.yml".source = "${dotfiles}/lazygit/config.yml";
"btop/btop.conf".source = "${dotfiles}/btop/btop.conf";
"btop/themes".source = "${dotfiles}/btop/themes";
"easyeffects".source = "${dotfiles}/easyeffects";
};
systemDirs.data = [gsettingsDatadir];
};
dconf.settings = {
"org/gnome/desktop/wm/preferences" = {
button-layout = "appmenu:none";
};
};
gtk = {
enable = true;
theme.name = "Orchis-Dark";
cursorTheme.name = "Bibata-Modern-Classic";
iconTheme.name = "Qogir-dark";
gtk3.extraConfig = {
gtk-application-prefer-dark-theme = 1;
gtk-decoration-layout = ":menu";
};
gtk4.extraConfig = {
gtk-application-prefer-dark-theme = 1;
gtk-decoration-layout = ":menu";
};
};
home.packages = with pkgs; [
# Really dirty hack since gnome-terminal is hardcoded for gtk-launch
(writeShellScriptBin "gnome-terminal" "shift; ${kitty}/bin/kitty -e \"$@\"")
cachix
zip
wget
git
difftastic
delta
unzip
file
bat
eza
ripgrep
ncdu
btop
curl
xh
lazygit
yq
jq
fzf
fd
killall
tokei
kitty
tmux
zoxide
starship
direnv
google-chrome
firefox-bin
tdesktop
webcord
signal-desktop
element-desktop
easyeffects
obsidian
gimp
nvd
tealdeer
spotify
krita
restic
vlc
node2nix
just
gcc
rustup
zig
yarn
go
gopls
gotools
revive
dive
wofi
mako
notify-desktop
grimblast
python3
gnumake
wlsunset
docker-compose
steam-run
nodejs_22
nodejs_22.pkgs.eslint_d
nodejs_22.pkgs.vscode-langservers-extracted
nodejs_22.pkgs.bash-language-server
nodejs_22.pkgs.yaml-language-server
nodejs_22.pkgs.graphql-language-service-cli
nodejs_22.pkgs.typescript-language-server
font-manager
sumneko-lua-language-server
stylua
selene
zls
shellcheck
shfmt
nil
alejandra
llvmPackages_latest.libclang
taplo
awscli2
terraform
kubectl
k9s
kubernetes-helm
packer
tree-sitter
neovim
customPackages.neovim-nightly
xdg-utils
linuxPackages_latest.perf
hyperfine
yazi
discord
glab
imagemagick
android-studio
android-tools
spacedrive
slack
swaylock
libreoffice
bun
wcalc
postgresql_16
playerctl
nix-index
bluetuith
(google-cloud-sdk.withExtraComponents (with google-cloud-sdk.components; [
app-engine-go
]))
google-cloud-sql-proxy
jless
mosh
libnotify
distrobox
(vesktop.override {
withSystemVencord = false;
withMiddleClickScroll = true;
})
zed-editor
delve
gofumpt
halloy
kooha
qmk
qimgv
hub
usbutils
exfat
openssl
watchexec
# bambu-studio
synology-drive-client
kicad-small
beam27Packages.elixir
beam27Packages.elixir-ls
inotify-tools
liquidctl
openrgb-with-all-plugins
vtsls
inputs.zen-browser.packages."${system}".default
lact
_1password-cli
aider-chat
zapzap
whatsapp-for-linux
inputs.serve.packages."${system}".default
lldb
valgrind
kcachegrind
ouch
];
}