-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.nix
211 lines (207 loc) · 4.08 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
{
pkgs,
config,
pkgs-unstable,
inputs,
...
}:
let
haskell_ = with pkgs-unstable; [
haskell-language-server
ormolu
stack
cabal-install
hpack
ghc
];
csharp = with pkgs-unstable; [
# dotnet-sdk_9
dotnet-sdk
dotnet-ef
# lang server
omnisharp-roslyn
# formatter
csharpier
];
typst_ = with pkgs-unstable; [
typst
typstyle
tinymist
];
go = with pkgs-unstable; [
gopls
gofumpt
];
misc = with pkgs-unstable; [
nginx-language-server
nginx
gnumake
];
# elixir = with pkgs-unstable; [
# elixir_1_16
# elixir-ls
# ];
python = with pkgs-unstable; [
python3
pipx
ruff
pyright
];
rust = with pkgs-unstable; [
rustup
# some crates require openssl
# see also https://github.com/sfackler/rust-openssl/issues/1663
libiconv
openssl
pkg-config
# ssg
zola
];
nix = with pkgs-unstable; [
nil
nixfmt-rfc-style
];
lua = with pkgs-unstable; [ stylua ];
shell = with pkgs-unstable; [
bash-language-server
shfmt
];
javascript = with pkgs-unstable; [
typescript-language-server
tailwindcss-language-server
vscode-langservers-extracted
astro-language-server
pnpm
nodejs
deno
prettierd
taplo
typescript
biome
nodePackages."@astrojs/language-server"
nodePackages.prettier
# to be able to view built static websites on localhost
live-server
# INFO: to globally install npm packages use the following two commands:
# npm config set prefix "${HOME}/.cache/npm/global"
# mkdir -p "${HOME}/.cache/npm/global"
# after this we can run npm install -g <pkg>
#
# Installed packages this way:
# @mdx-js/language-server
# prettier-plugin-astro
];
c = with pkgs-unstable; [
clang
cmake
clang-tools
mold
];
in
{
imports = [
./helix.nix
./firefox.nix
./git.nix
./lazygit.nix
./nu.nix
./sway.nix
];
xdg.configFile."wezterm/wezterm.lua".source = ./wezterm.lua;
# disable update check for pnpm
xdg.configFile."pnpm/rc".source =
let
keyValue = pkgs.formats.keyValue { };
in
keyValue.generate "rc" { update-notifier = false; };
xdg.userDirs.download = "${config.home.homeDirectory}/t";
programs = {
yazi.enable = true;
zoxide.enable = true;
wezterm = {
enable = true;
# currently, rendering is broken in the new wezterm versions https://github.com/NixOS/nixpkgs/issues/336069
package = inputs.wezterm.packages.${pkgs.system}.default;
};
ripgrep.enable = true;
fzf.enable = true;
fd.enable = true;
go.enable = true;
go.goBin = "go/bin";
};
home = {
sessionPath = [
# "$HOME/.cache/npm/global/bin"
# "$HOME/.cargo/bin"
];
pointerCursor = {
package = pkgs.bibata-cursors;
name = "Bibata-Modern-Ice";
};
packages =
with pkgs;
[
bat
sof-firmware
ripgrep
libreoffice
xclip
# google-chrome
p7zip
exercism
zathura
inputs.patchy.packages.${pkgs.system}.default
brightnessctl
gimp
catppuccin-whiskers
just
# generates LS_COLORS
vivid
onefetch
imagemagick
# sound control
pamixer
# otherwise playwright will not work
# chromium
]
++ (with pkgs-unstable; [
# for recordings
gnome-terminal
wl-clipboard
playwright-test
doggo
jq
# playwright-driver
dconf
hugo
gh
asciinema
# interactive search and replace
scooter
# benchmarking tool
hyperfine
# take screenshots
slurp
# copy slurp screenshots to clipboard
grim
mesa
tree
postgresql
vial
pgcli
])
++ haskell_
++ rust
++ nix
++ lua
++ c
++ csharp
++ shell
++ javascript
++ go
++ python
++ misc
++ typst_;
stateVersion = "24.11";
};
}