forked from kclejeune/system
-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.nix
executable file
·168 lines (163 loc) · 3.32 KB
/
default.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
{
config,
pkgs,
lib,
...
}:
let
inherit (pkgs) stdenv;
inherit (lib) mkIf;
in
{
imports = [
./bat.nix
./direnv.nix
./dotfiles
./fzf.nix
./git.nix
# ./kitty.nix
./nushell.nix
./nvim
./shell.nix
./ssh.nix
./tldr.nix
./tmux.nix
];
nixpkgs.config = {
allowUnfree = true;
};
home =
let
NODE_GLOBAL = "${config.home.homeDirectory}/.node-packages";
in
{
# This value determines the Home Manager release that your
# configuration is compatible with. This helps avoid breakage
# when a new Home Manager release introduces backwards
# incompatible changes.
#
# You can update Home Manager without changing this value. See
# the Home Manager release notes for a list of state version
# changes in each release.
stateVersion = "22.05";
sessionVariables = {
GPG_TTY = "/dev/ttys000";
EDITOR = "nvim";
VISUAL = "nvim";
CLICOLOR = 1;
LSCOLORS = "ExFxBxDxCxegedabagacad";
KAGGLE_CONFIG_DIR = "${config.xdg.configHome}/kaggle";
NODE_PATH = "${NODE_GLOBAL}/lib";
};
sessionPath = [
"${NODE_GLOBAL}/bin"
"${config.home.homeDirectory}/.rd/bin"
"${config.home.homeDirectory}/.local/bin"
];
# define package definitions for current user environment
packages = with pkgs; [
age
alejandra
atuin
# autojump
cachix
cb
cirrus-cli
comma
coreutils-full
curl
diffutils
fd
ffmpeg
findutils
gawk
gnugrep
gnupg
gnused
grype
helm-docs
httpie
hurl
kotlin
kubectl
kubectx
kubernetes-helm
kustomize
lazydocker
luajit
mmv
ncdu
neofetch
nil
nix
#nixfmt
nixfmt-rfc-style
nixpkgs-fmt
nmap
nodejs_20
parallel
poetry
pre-commit
# python with default packages
(python3.withPackages (
ps: with ps; [
numpy
scipy
matplotlib
networkx
]
))
ranger
rclone
restic
rnix-lsp
rsync
ruff
shellcheck
starship
stylua
sysdo
tree
treefmt
trivy
yq-go
];
};
programs = {
home-manager = {
enable = true;
};
dircolors.enable = true;
go.enable = true;
gpg.enable = true;
htop.enable = true;
jq.enable = true;
java = {
enable = true;
package = pkgs.jdk21;
};
k9s.enable = true;
lazygit.enable = true;
less.enable = true;
man.enable = true;
nix-index.enable = true;
pandoc.enable = true;
ripgrep.enable = true;
starship.enable = true;
yt-dlp.enable = true;
zoxide.enable = true;
# conditionally enable vscode only on linux
vscode = mkIf stdenv.isLinux {
enable = true;
# extensions = with pkgs.vscode-extensions; [ vscode-extensions.ms-vscode-remote ];
package = pkgs.vscode.fhsWithPackages (
ps: with ps; [
rustup
zlib
openssl.dev
pkg-config
]
);
};
};
}