-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathhome.nix
More file actions
193 lines (174 loc) · 3.64 KB
/
home.nix
File metadata and controls
193 lines (174 loc) · 3.64 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
{ config
, pkgs
, useSymlinks
, homeDirectory
, username
, dotfilesDirectory
, ...
}:
let
inherit (import ./nix/utils.nix { inherit config useSymlinks dotfilesDirectory; sourceDirectory = ./.; })
fileReference;
in
{
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (pkgs.lib.getName pkg) [
"yandex-cloud"
"claude-code"
];
imports = [
./nix/tmux.nix
];
home = {
inherit homeDirectory username;
stateVersion = "25.11";
};
# The home.packages option allows you to install Nix packages into your
# environment.
home.packages = with pkgs.unstable; [
# Shell and tools
git
zsh
busybox
tmux
tmuxinator
ripgrep # Searching file content
jq # Json manipulation
yq # Yaml manipulation
fd # Enhanced find
bat # Enhanced cat
eza # Enhanced ls
ouch # Universal archiver
wsl-open
comma # Runs programs without installing them
nix-index
delta # Enhanced git-diff
concurrently
jujutsu # Git-compatible DVCS that is both simple and powerful
dua # Disk usage
htop # Enhanced top
just # Enhanced make
socat # For proxying SSH
moor # Rust pager
nix-search-cli # Use search.nixos.org directly from CLI
grpcurl # curl for grpc
claude-code # it actually happened.
gh # GitHub client
nushell # Advanced shell
gdu # Disk Usage
# deno + build dependencies
deno
cmakeMinimal
libclang
glib
# using unwrapped nvim allows you to easily use it outside of NixOS
neovim-unwrapped
# nvim dependencies
pkgs.curl
pkgs.unzip
pkgs.gzip
pkgs.gcc
pkgs.gnutar
pkgs.gnumake
pkgs.iconv
pkgs.tree-sitter
# pekingese control
kubectl
kubevpn
kubernetes-helm
fluxcd
sops
postgresql_16
awscli2
# yandex-cloud
# Java / Scala
pkgs.jdk
pkgs.coursier
metals
pkgs.bloop
(pkgs.callPackage (import ./nix/sbt.nix) { })
pkgs.scala-cli
pkgs.scalafix
pkgs.scalafmt
mill
gradle_9
maven
jdt-language-server
# JS
nodejs
yarn
bun
fnm # like nvm, but better
pnpm
# Go
go
golangci-lint
gofumpt
go-task
# Rust
rustup
# Ruby
rbenv
rubocop
libyaml
# Python
pkgs.uv
python313
# (pkgs.callPackage (import ./nix/python.nix) { })
# nix
pkgs.nixd
pkgs.alejandra
pkgs.deadnix
pkgs.statix
];
home.sessionVariables = with pkgs; {
LD_LIBRARY_PATH = lib.concatStringsSep ":" [
(lib.makeLibraryPath [
libclang
glib
libyaml.out
])
"$HOME/.nix-profile/lib"
"$LD_LIBRARY_PATH"
];
CPATH = lib.makeSearchPath "include" [ libyaml.dev ];
LIBRARY_PATH = lib.makeLibraryPath [ libyaml.out ];
};
home.file.".zshenv" = {
source = fileReference ./.zshenv;
};
xdg.mime.enable = false;
xdg.configFile = {
"git" = {
source = fileReference ./git;
recursive = true;
};
"jj" = {
source = fileReference ./jj;
recursive = true;
};
"ideavim" = {
source = fileReference ./ideavim;
recursive = true;
};
"zsh" = {
source = fileReference ./zsh;
recursive = true;
};
"nvim" = {
source = fileReference ./astronvim;
recursive = true;
};
"tmuxinator" = {
source = fileReference ./tmuxinator;
recursive = true;
};
"gh/config.yml" = {
source = fileReference ./gh/config.yml;
};
};
# https://github.com/nix-community/home-manager/issues/2995
programs.man.enable = false;
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
}