Repository navigation
Expand file tree
/
Copy pathhome.nix
More file actions
632 lines (563 loc) · 12.5 KB
/
Copy pathhome.nix
File metadata and controls
632 lines (563 loc) · 12.5 KB
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
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
{
config,
pkgs,
lib,
...
}:
let
MSRV = "1.99.0"; # minimual supported rust version
ZIG_VERSION = "0.17.0";
GO_VERSION = "1.27.0";
ODIN_VERSION = "dev-2026-10";
OLS_VERSION = "dev-2026-08";
in
{
home = {
stateVersion = "26.05";
username = "ruahman";
homeDirectory = "/home/ruahman";
};
# import hardware configuration
imports = [
./neovim/home.nix
./emacs/emacs.nix
./mangowm.nix
./ai.nix
];
home.sessionVariables = {
RUSTC_WRAPPER = "${pkgs.sccache}/bin/sccache";
OPENSSL_DIR = "${pkgs.openssl.dev}";
OPENSSL_LIB_DIR = "${pkgs.openssl.out}/lib";
OPENSSL_INCLUDE_DIR = "${pkgs.openssl.dev}/include";
PKG_CONFIG_PATH = "${pkgs.openssl.dev}/lib/pkgconfig";
};
home.shellAliases = {
lsz = "eza -l --git --icons --tree --level=2";
nvim = "nvim --listen /tmp/nvim";
};
# xternal desktop group
xdg.portal = {
enable = true;
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
config.common.default = "*";
};
# Packages that should be installed to the user profile.
home.packages = with pkgs; [
# a comandline tool for managing display and monitors
# wlr-randr
# file explorer
thunar
# bootstick burner
caligula
# mangowm
swaybg # background
swaynotificationcenter # notifications
xdg-desktop-portal-wlr # screen shots?
wl-clipboard
cliphist
grim
gobatmon
gnome-keyring # for storing passwords
## AI
claude-desktop
claude-agent-acp
# opencode
# omp
voxtype # speach-to-text
## AWS
awscli2
## Containerization
podman
podman-compose
docker
docker-compose
lazydocker
docker-language-server
## development tools
bruno
postman
posting
gnumake
cmake
glibc.dev
openssl
openssl.dev
protobuf
nasm
asm-lsp
taplo # toml tools
## bitcoin
#bitcoind
#lnd
#sparrow
## paint
pinta
## music and video
#audacity
vlc
## office
#libreoffice
foliate # epub
## math
typst
tinymist # typst lsp
miktex # latex
## text editors
# emacs
## email
#evolution
thunderbird
## torrent
qbittorrent
## video games
# snes9x
# windows emulation
wine
bottles
## rust
(rust-bin.stable.${MSRV}.default.override {
extensions = [
"rust-src" # Required for rust-analyzer
"rust-analyzer" # LSP server for IDEs
];
})
rust-script
sccache
vscode-extensions.vadimcn.vscode-lldb.adapter
pkg-config
(lib.lowPrio lldb)
## golang
go-bin.versions.${GO_VERSION}
gopls
gofumpt
golines
golangci-lint
golangci-lint-langserver
delve # golang debugger
## c/c++
(lib.hiPrio clang)
clang-tools
gcc
seer # gui debugger
nnd # tui debugger
binutils
## zig
pkgs.zigpkgs.${ZIG_VERSION}
zls
## odin
odin-bin.${ODIN_VERSION}
ols-bin.${OLS_VERSION}
## python
python314
python314Packages.pytest
python314Packages.pip
python314Packages.ipython
python314Packages.numpy
python314Packages.pandas
python314Packages.matplotlib
python314Packages.pyzmq
python314Packages.jupyter
python314Packages.marimo
python314Packages.python-lsp-server
python314Packages.jedi-language-server
uv
pipenv
poetry
mypy
ty
isort
ruff
pyright # python lsp
basedpyright # python lsp
pyenv
## ruby
ruby
rubyPackages.nokogiri
rubyPackages.pry
rubyPackages.rubocop
solargraph
ruby-lsp
rbenv
## javascript/typescript
nodejs
pnpm
typescript
tsx
eslint
prettier
bun
deno
vite-plus
nub
lazynpm
typescript-language-server
vscode-langservers-extracted
superhtml
vscode-js-debug
jetbrains.webstorm
fnm
## wasm
wasmtime
## dotnet
dotnet-sdk_11
# roslyn-ls # C# language server
omnisharp-roslyn # language server
csharpier # C# code formatter
# avalonia
## browsers
google-chrome
#db
sqlite
postgresql
mariadb
lazysql
## utils/tools
fastfetch
cmatrix
htop
btop
below
# superfile
tldr # to long don't read
duf # disk utility find
delta # diff tool
difftastic # diff tool
pass # passwords
# gopass
yubikey-manager
# lazygit
xclip # clipboard
p7zip # 7zip compression
unzip
wget
ripgrep
fd
ispell
pandoc
imagemagick # image
ffmpeg # video
tree # show directory tree
bat # cooler cat
jq # json
yq-go # yaml
ueberzugpp # for showing pics in terminal
just # make like tool
watchexec # file watcher
pavucontrol # volume control
blueman # bluetooth control
# cloudsmith-cli
#gnupg # good enough privacy
# message apps
telegram-desktop
karere # opensource whatsapp
signal-desktop
slack
discord
irssi
zoom-us
# dictionary
hunspell
hunspellDicts.en_US
hunspellDicts.es_PR
# security
nmap
dirb
wireshark
angryipscanner
];
programs = {
helix = {
enable = true;
settings = {
theme = "tokyonight";
editor = {
line-number = "relative";
bufferline = "multiple";
cursorline = true;
cursor-shape = {
normal = "block";
insert = "bar";
select = "underline";
};
indent-guides = {
render = true;
character = "│"; # Custom vertical line character
skip-levels = 0; # Number of indent levels to skip rendering
};
statusline = {
left = [
"spinner"
"mode"
"read-only-indicator"
"file-modification-indicator"
"file-name"
"version-control"
];
center = [ "diagnostics" ];
right = [
"selections"
"register"
"position"
"position-percentage"
"file-encoding"
"file-type"
];
};
lsp = {
display-messages = true;
display-inlay-hints = true;
};
};
keys.insert = {
"C-j" = "normal_mode";
"C-f" = "move_char_right";
"C-b" = "move_char_left";
"C-n" = "move_line_down";
"C-p" = "move_line_up";
};
};
languages.language = [
{
name = "c-sharp";
auto-format = true;
formatter = {
command = "csharpier";
args = [ "format" ];
};
}
];
};
lazygit = {
enable = true;
settings.os = {
openLink = "xdg-open {{link}}"; # used for "create pull request", open in browser, etc.
open = "xdg-open {{filename}}"; # used for opening files ("o")
};
};
zoxide = {
enable = true;
enableBashIntegration = true;
enableNushellIntegration = true;
};
# fuzy find
fzf = {
enable = true;
enableBashIntegration = true;
enableNushellIntegration = false;
};
eza.enable = true;
yazi.enable = true;
zed-editor = {
enable = true;
userSettings = {
vim_mode = true;
relative_line_numbers = "enabled";
format_on_save = "on";
icon_theme = "Material Icon Theme";
ui_font_size = 20;
ui_font_family = "JetBrainsMono Nerd Font";
buffer_font_size = 20;
buffer_font_family = "JetBrainsMono Nerd Font";
auto_update = false;
extend_comment_on_newline = false;
theme = {
mode = "dark";
light = "Tokyo Night Light";
dark = "Tokyo Night";
};
title_bar = {
show_menus = false;
show_user_picture = false;
show_user_menu = true;
show_sign_in = false;
show_onboarding_banner = false;
show_project_items = true;
show_worktree_name = false;
show_branch_name = true;
};
toolbar = {
quick_actions = false;
};
status_bar = {
"experimental.show" = false;
};
project_panel = {
dock = "right";
default_width = 350.0;
};
agent = {
dock = "right";
sidebar_side = "right";
};
agent_servers = {
"claude-code" = {
type = "custom";
command = "claude-agent-acp";
args = [ ];
};
"omp" = {
type = "custom";
command = "omp";
args = [ "acp" ];
};
"opencode" = {
type = "custom";
command = "opencode";
args = [ "acp" ];
};
};
};
};
nushell = {
enable = true;
settings = {
show_banner = false;
};
environmentVariables = config.home.sessionVariables;
loadSessionVariables = false;
shellAliases = config.home.shellAliases;
};
bash.enable = true;
zsh.enable = true;
git.enable = true;
ghostty = {
enable = true;
settings = {
theme = "Adventure Time";
background-opacity = 0.85;
font-family = "FiraCode Nerd Font";
window-inherit-font-size = false;
font-size = 18;
window-height = 25;
window-width = 100;
window-padding-balance = true;
window-padding-color = "extend";
};
};
terminator = {
enable = true;
config = {
profiles.default = {
use_system_font = false;
font = "Terminess Nerd Font Mono 18";
};
};
};
kitty = {
enable = true;
font = {
name = "CaskaydiaCove Nerd Font";
size = 18;
package = pkgs.nerd-fonts.jetbrains-mono;
};
};
foot = {
enable = true;
settings = {
main = {
font = "JetBrainsMono Nerd Font:size=18";
};
};
};
starship = {
enable = true;
enableNushellIntegration = true;
enableBashIntegration = true;
settings = {
scan_timeout = 500; # in milliseconds
nodejs = {
symbol = " ";
};
python = {
symbol = " ";
};
ruby = {
symbol = " ";
};
golang = {
symbol = " ";
};
rust = {
symbol = " ";
};
zig = {
symbol = " ";
};
lua = {
symbol = " ";
};
dotnet = {
symbol = " ";
};
};
};
carapace = {
enable = true;
enableBashIntegration = true;
};
tmux = {
enable = true;
shell = "${pkgs.nushell}/bin/nu";
terminal = "tmux-256color";
extraConfig = ''
set -g mouse on
set-option -g status-position top
set -g base-index 1
set -g pane-base-index 1
# popup
bind-key C-t if-shell -F '#{==:#{client_session},popup}' 'detach-client' 'display-popup -w 80% -h 75% -d "#{pane_current_path}" -E "tmux new-session -A -s popup"'
set -g popup-border-style bg=default,fg=brightblack
set -g popup-border-lines rounded
set -g theme dark
set -g popup-style bg=default
set -as terminal-overrides ",*:Tc" # true color, if you still want it
'';
plugins = with pkgs.tmuxPlugins; [
{
plugin = nord;
extraConfig = ''
set -g @nord_tmux_date_format "%Y-%m-%d"
'';
}
];
};
herdr = {
enable = true;
package = pkgs.herdr;
settings = {
>
keys = {
prefix = "ctrl+b";
};
theme = {
name = "catppuccin";
};
terminal = {
default_shell = "bash";
};
ui = {
sound = {
enabled = true;
};
toast = {
delivery = "herdr";
};
};
};
};
rofi = {
enable = true;
settings.terminal = "${pkgs.ghostty}/bin/ghostty";
settings.extraConfig = {
modi = "drun,run,window";
show-icons = true;
drun-display-format = "{name}";
};
};
gridcraft.enable = true;
wordcraft.enable = true;
deckcraft.enable = true;
pdfcraft.enable = true;
photocraft.enable = true;
};
}