-
Notifications
You must be signed in to change notification settings - Fork 0
/
home.nix
149 lines (118 loc) · 2.5 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
{ config, pkgs, ... }:
{
home.username = "claytonjy";
home.homeDirectory = "/home/claytonjy";
home.stateVersion = "22.11";
home.packages = with pkgs; [
git-absorb
nano
# modern shell tools
ripgrep # grep
fd # find
bat # cat
sd # sed
eza # ls/exa
zoxide # cd
mise # asdf/direnv/pyenv
zellij # tmux
fzf
jq
ffmpeg
kubernetes-helm
dive
pipx
pyenv
uv
(nerdfonts.override { fonts = [ "FiraCode" "FiraMono" ]; })
nil
];
programs.git = {
enable = true;
userName = "Clayton Yochum";
userEmail = "claytonjy@gmail.com";
lfs.enable = true;
extraConfig = {
init.defaultBranch = "main";
core = {
editor = "nano";
};
push.autoSetupRemote = true;
rebase.updateRefs = true;
rerere.enabled = true;
};
includes = [
{
condition = "hasconfig:remote.*.url:git@bitbucket.org:abridge-ai/**";
contents = {
user = {
email = "clayton@abridge.com";
};
};
}
{
condition = "hasconfig:remote.*.url:git@github.com:abridgeai/**";
contents = {
user = {
email = "clayton@abridge.com";
};
};
}
];
ignores = [
".python-version"
".vscode"
".venv"
".vagrant"
];
};
programs.fish = {
enable = true;
plugins = [
{
name = "nix-env";
src = pkgs.fetchFromGitHub {
owner = "lilyball";
repo = "nix-env.fish";
rev = "master";
sha256 = "RG/0rfhgq6aEKNZ0XwIqOaZ6K5S4+/Y5EEMnIdtfPhk=";
};
}
{
name = "fzf.fish";
src = pkgs.fishPlugins.fzf-fish.src;
}
];
interactiveShellInit =
''
starship init fish | source
pyenv init - | source
zoxide init fish | source
mise activate fish | source
'';
loginShellInit =
''
pyenv init --path | source
'';
shellInit =
''
# pipx install dir
fish_add_path -g ~/.local/bin
'';
shellAliases = {
ls = "eza";
ll = "eza -al --icons";
};
};
programs.starship = {
enable = true;
enableFishIntegration = true;
};
fonts.fontconfig.enable = true;
home.file = {
".config/pypoetry/config.toml".source = ./poetry/config.toml;
};
home.sessionVariables = {
# EDITOR = "emacs";
};
programs.home-manager.enable = true;
}