-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhome.nix
More file actions
133 lines (103 loc) · 3.08 KB
/
Copy pathhome.nix
File metadata and controls
133 lines (103 loc) · 3.08 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
{ config, pkgs, ... }:
let
dotfiles = "${config.home.homeDirectory}/go/src/github.com/alexbarksdale/dotfiles";
in
{
home.username = "alexbarksdale";
home.homeDirectory = "/Users/alexbarksdale";
home.stateVersion = "26.05";
programs.home-manager.enable = true;
home.packages = with pkgs; [
ripgrep
jq
kubectl
neovim
];
home.sessionVariables.EDITOR = "nvim";
programs.atuin = {
enable = true;
enableZshIntegration = true;
};
programs.bun.enable = true;
programs.git = {
enable = true;
lfs.enable = true;
settings = {
user = {
name = "Alex Barksdale";
email = "alx.barksdale@gmail.com";
};
url."git@github.com:".insteadOf = "https://github.com/";
};
};
programs.zsh = {
enable = true;
enableCompletion = true;
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
oh-my-zsh = {
enable = true;
theme = "robbyrussell";
plugins = [ "git" ];
};
shellAliases = {
k = "kubectl";
api = "kubectl -n api";
evp = "kubectl -n event-processor";
pins = "kubectl -n pins";
};
profileExtra = ''
eval "$(/opt/homebrew/bin/brew shellenv)"
'';
envExtra = ''
export VOLTA_HOME="$HOME/.volta"
export PATH="$VOLTA_HOME/bin:$PATH"
if [ -s "$HOME/.cargo/env" ]; then
. "$HOME/.cargo/env"
fi
'';
initContent = ''
export GOPATH="$HOME/go"
export GOPRIVATE="github.com/pebbl-app"
export PATH="$PATH:/usr/local/go/bin:$GOPATH/bin"
if [ -d "/opt/homebrew/opt/openjdk/bin" ]; then
export PATH="/opt/homebrew/opt/openjdk/bin:$PATH"
fi
if [ -d "/opt/homebrew/share/google-cloud-sdk/bin" ]; then
export PATH="/opt/homebrew/share/google-cloud-sdk/bin:$PATH"
fi
if command -v pyenv >/dev/null 2>&1; then
export PYENV_ROOT="$HOME/.pyenv"
if [ -d "$PYENV_ROOT/bin" ]; then
export PATH="$PYENV_ROOT/bin:$PATH"
fi
eval "$(pyenv init - zsh)"
fi
if command -v rbenv >/dev/null 2>&1; then
eval "$(rbenv init -)"
fi
if [ -d "$HOME/.local/bin" ]; then
export PATH="$HOME/.local/bin:$PATH"
fi
if command -v direnv >/dev/null 2>&1; then
eval "$(direnv hook zsh)"
fi
if command -v zoxide >/dev/null 2>&1; then
eval "$(zoxide init zsh)"
fi
if [ -d "$HOME/.local/share/bob/nvim-bin" ]; then
export PATH="$HOME/.local/share/bob/nvim-bin:$PATH"
fi
'';
};
home.file.".config/ghostty".source =
config.lib.file.mkOutOfStoreSymlink "${dotfiles}/home/.config/ghostty";
home.file.".config/nvim".source =
config.lib.file.mkOutOfStoreSymlink "${dotfiles}/home/.config/nvim";
home.file.".tmux.conf".source =
config.lib.file.mkOutOfStoreSymlink "${dotfiles}/home/.config/tmux/tmux.conf";
home.file.".claude/CLAUDE.md".source =
config.lib.file.mkOutOfStoreSymlink "${dotfiles}/home/AGENTS.md";
home.file.".codex/AGENTS.md".source =
config.lib.file.mkOutOfStoreSymlink "${dotfiles}/home/AGENTS.md";
}