-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.nix
154 lines (142 loc) · 3.2 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
{ config, pkgs, lib, ... }:
let
email = EMAIL;
machine-name = MACHINE-NAME;
git = import ./config/git.nix { inherit config pkgs email; };
zsh = import ./config/zsh.nix { inherit config pkgs lib machine-name; };
in
{
programs.home-manager.enable = true;
news.display = "silent";
xdg.enable = true;
xdg.configFile."nix/nix.conf".source = ./nix/nix.conf;
xdg.configFile."sqls".source = ./sqls;
xdg.configFile."pgcli".source = ./pgcli;
xdg.configFile."ranger/rc.conf".source = ./ranger/rc.conf;
xdg.configFile."ranger/commands.py".source = ./ranger/commands.py;
nixpkgs.config.allowUnfree = true;
fonts.fontconfig.enable = true;
imports = [
git
zsh
./config/nvim.nix
./config/tmux.nix
];
home.packages = with pkgs; [
alacritty
autojump
bat
cmake
coreutils
delta
direnv
efm-langserver
entr
exa
fd
fzf
fontforge
gawk
gcc
gopls
highlight
jq
lazygit
(nerdfonts.override { fonts = [ "RobotoMono" ]; })
nodejs
nodePackages.bash-language-server
nodePackages.eslint_d
nodePackages.tailwindcss
nodePackages.typescript-language-server
nodePackages.vim-language-server
nodePackages.vscode-langservers-extracted
pgcli
ranger
ripgrep
rust-analyzer
rustup
silver-searcher
sqls
# sumneko-lua-language-server
tree
vivid
yarn
];
programs.exa = {
enable = true;
};
programs.autojump = {
enable = true;
enableZshIntegration = true;
};
programs.bat = {
enable = true;
config = {
theme = "Nord";
};
};
programs.fzf = {
enable = true;
enableZshIntegration = true;
defaultCommand = "fd --max-depth 6 --type f --hidden --follow --exclude .git";
defaultOptions = ["--height 40%" "--layout=reverse" "--border"];
fileWidgetCommand = "fd --max-depth 7 --type f --hidden --follow --exclude .git";
fileWidgetOptions = ["--preview '(highlight -O ansi -l {} 2> /dev/null || cat {} || tree -C {}) 2> /dev/null | head -200'"];
historyWidgetOptions = ["--sort" "--exact"];
tmux = {
enableShellIntegration = true;
shellIntegrationOptions = ["-d 40%"];
};
};
programs.alacritty = {
enable = true;
settings = {
env = {
"TERM" = "xterm-256color";
};
window = {
decorations = "none";
startup_mode = "Windowed";
dimensions = {
columns = 0;
lines = 0;
};
padding = {
x = 2;
y = 0;
};
};
scrolling = {
history = 10000;
multiplier = 3;
faux_multiplier = 3;
auto_scroll = false;
};
font = {
size = 12.0;
use_thin_strokes = false;
offset = {
x = 0;
y = 2;
};
normal = {
family = "RobotoMono Nerd Font";
style = "Regular";
};
};
draw_bold_text_with_bright_colors = true;
colors.primary = {
background = "0x393a3c";
foreground = "0xdadfe0";
};
};
};
programs.direnv = {
enable = true;
enableZshIntegration = true;
nix-direnv = {
enable = true;
};
};
programs.go.enable = true;
}