2024-03-29 21:45:55 +00:00
|
|
|
{pkgs, ...}: {
|
2023-11-05 04:15:51 +00:00
|
|
|
programs.git = {
|
|
|
|
enable = true;
|
2024-03-29 21:45:55 +00:00
|
|
|
package = pkgs.gitAndTools.gitFull;
|
2024-01-26 20:57:50 +00:00
|
|
|
userEmail = "aria@chytrid.org";
|
2023-11-05 04:15:51 +00:00
|
|
|
userName = "Aria Nolan";
|
|
|
|
extraConfig = {
|
|
|
|
init.defaultbranch = "main";
|
2024-02-23 02:16:38 +00:00
|
|
|
diff.tool = "nvimdiff";
|
2023-11-05 04:15:51 +00:00
|
|
|
};
|
|
|
|
aliases = {
|
|
|
|
co = "checkout";
|
|
|
|
aa = "add .";
|
|
|
|
pom = "push -u origin main";
|
|
|
|
cm = "commit -m";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
programs.gitui = {
|
|
|
|
enable = true;
|
|
|
|
theme = ''
|
|
|
|
(
|
|
|
|
selected_tab: Reset,
|
|
|
|
command_fg: DarkGray,
|
|
|
|
selection_bg: Green,
|
|
|
|
selection_fg: White,
|
|
|
|
cmdbar_bg: Blue,
|
|
|
|
cmdbar_extra_lines_bg: Blue,
|
|
|
|
disabled_fg: Magenta,
|
|
|
|
diff_line_add: Green,
|
|
|
|
diff_line_delete: Red,
|
|
|
|
diff_file_added: LightGreen,
|
|
|
|
diff_file_removed: LightRed,
|
|
|
|
diff_file_moved: LightMagenta,
|
|
|
|
diff_file_modified: Yellow,
|
|
|
|
commit_hash: Magenta,
|
|
|
|
commit_time: LightCyan,
|
|
|
|
commit_author: Green,
|
|
|
|
danger_fg: Red,
|
|
|
|
push_gauge_bg: Blue,
|
|
|
|
push_gauge_fg: Reset,
|
|
|
|
tag_fg: LightMagenta,
|
|
|
|
branch_fg: LightYellow,
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|