-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.nix
152 lines (138 loc) · 3.54 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
{ config, sources ? import ./nix/sources.nix, pkgs ? import sources.nixpkgs {}, ... }:
{
# Home Manager needs a bit of information about you and the paths it should
# manage.
home.username = "eunsukimme";
home.homeDirectory = "/Users/eunsukimme";
# 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 should not change this value, even if you update Home Manager. If you do
# want to update the value, then make sure to first check the Home Manager
# release notes.
home.stateVersion = "22.11"; # Please read the comment before changing.
home.packages = with pkgs; [
# dev
docker docker-compose
terraform
awscli2
# utils
iterm2
slack
zoom-us
karabiner-elements
raycast
discord
# other deps
];
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
programs.git = {
enable = true;
userName = "eunsukimme";
userEmail = "[email protected]";
aliases = {
st = "status";
};
extraConfig = {
core = {
editor = "code --wait";
};
};
};
programs.gh = {
enable = true;
settings = {
git_protocol = "ssh";
prompt = "enabled";
aliases = {
co = "pr checkout";
};
};
};
programs.zsh = {
enable = true;
enableAutosuggestions = true;
syntaxHighlighting.enable = true;
plugins = [
{
name = "zsh-powerlevel10k";
src = pkgs.zsh-powerlevel10k;
file = "share/zsh-powerlevel10k/powerlevel10k.zsh-theme";
}
{
name = "zsh-fast-syntax-highlighting";
src = pkgs.zsh-fast-syntax-highlighting;
file = "share/zsh/site-functions/fast-syntax-highlighting.plugin.zsh";
}
{
name = "zsh-autosuggestions";
src = pkgs.zsh-autosuggestions;
file = "share/zsh-autosuggestions/zsh-autosuggestions.zsh";
}
{
name = "zsh-completions";
src = pkgs.zsh-completions;
}
];
oh-my-zsh = {
enable = true;
plugins = [ "git" "fzf" "fasd" ];
};
shellAliases = {
cat = "bat";
};
initExtra = ''
export PATH=/opt/homebrew/bin:$PATH
test -e "$HOME/.iterm2_shell_integration.zsh" && source "$HOME/.iterm2_shell_integration.zsh"
. $HOME/.asdf/asdf.sh
'';
initExtraFirst = ''
# Powerlevel10k instant prompt
if [[ -r "$HOME/.cache/p10k-instant-prompt-''${(%):-%n}.zsh" ]]; then
source "$HOME/.cache/p10k-instant-prompt-''${(%):-%n}.zsh"
fi
'';
initExtraBeforeCompInit = ''
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
'';
};
programs.neovim = {
enable = true;
coc.enable = true;
defaultEditor = true;
viAlias = true;
vimAlias = true;
plugins = with pkgs.vimPlugins; [
SpaceVim
];
};
programs.vscode = {
enable = true;
extensions = with pkgs.vscode-extensions; [
naumovs.color-highlight
dbaeumer.vscode-eslint
github.copilot
eamodio.gitlens
hashicorp.terraform
jnoortheen.nix-ide
esbenp.prettier-vscode
prisma.prisma
jock.svg
];
};
programs.fzf.enable = true;
programs.bat.enable = true;
programs.ssh = {
enable = true;
extraConfig = ''
Host github.com
AddKeysToAgent yes
IgnoreUnknown UseKeychain
UseKeychain yes
IdentityFile ~/.ssh/id_ed25519
'';
};
programs.direnv.enable = true;
}