-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.nix
117 lines (106 loc) · 2.73 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
{ config, pkgs, ... }:
{
# Home Manager needs a bit of information about you and the
# paths it should manage.
home.username = "parallels";
home.homeDirectory = "/home/parallels";
xdg.cacheHome = "/home/parallels/snap/alacritty/common/.cache";
# 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.
home.stateVersion = "22.05";
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
programs.direnv = {
enable = true;
};
programs.git = {
enable = true;
lfs.enable = true;
userEmail = "[email protected]";
userName = "Isaac Torres";
includes = [
{ path = "~/.gitconfig.local"; }
];
extraConfig = {
core = {
editor = "nvim";
};
credential = {
"https://gist.github.com" = {
helper = "!/usr/bin/gh auth git-credential";
};
"https://github.com" = {
helper = "!/usr/bin/gh auth git-credential";
};
};
init = {
defaultBranch = "main";
};
};
};
programs.jq = {
enable = true;
};
programs.starship = {
enable = true;
settings = {
aws = {
format = "on [$symbol$profile]($style) ";
};
directory = {
truncate_to_repo = false;
};
git_status = {
disabled = true;
};
git_branch = {
format = "on [$symbol$branch]($style) ";
};
python = {
disabled = true;
};
cmake = {
disabled = true;
};
};
};
programs.tmux = {
enable = true;
sensibleOnTop = false;
escapeTime = 1;
keyMode = "vi";
mouse = true;
prefix = "C-a";
terminal = "xterm-256color";
plugins = with pkgs.tmuxPlugins; [
{
plugin = dracula;
extraConfig = "
set -g @dracula-show-powerline true
set -g @dracula-show-left-icon session
set -g @dracula-show-battery false
set -g @dracula-show-location false
set -g @dracula-show-weather false
";
}
];
extraConfig = "
set -g status-position top
set -g terminal-overrides \",alacritty:Tc\"
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind -r C-h select-window -t :-
bind -r C-l select-window -t :+
bind | split-window -h -c \"#{pane_current_path}\"
bind - split-window -v -c \"#{pane_current_path}\"
";
};
}