2023-11-26 20:26:49 +00:00
|
|
|
{...}: {
|
|
|
|
home-manager.users.jade = {pkgs, ...}: {
|
2023-11-20 07:54:29 +00:00
|
|
|
programs.git = {
|
|
|
|
enable = true;
|
|
|
|
userName = "Schrottkatze";
|
|
|
|
userEmail = "git@schrottkatze.de";
|
|
|
|
aliases = {
|
|
|
|
a = "add";
|
|
|
|
c = "commit";
|
|
|
|
ca = "commit --all";
|
|
|
|
p = "push";
|
|
|
|
pl = "pull";
|
|
|
|
s = "status";
|
|
|
|
};
|
2024-01-11 15:38:37 +00:00
|
|
|
signing = {
|
2024-01-11 15:42:21 +00:00
|
|
|
key = "74F2 FE5F 55E9 0F54 7F98 3B84 8854 79FF F880 17D2";
|
2024-01-11 15:38:37 +00:00
|
|
|
signByDefault = true;
|
|
|
|
};
|
2023-11-20 07:54:29 +00:00
|
|
|
};
|
2023-11-23 14:27:53 +00:00
|
|
|
programs.gitui = {
|
|
|
|
enable = true;
|
|
|
|
keyConfig = ''
|
2023-11-26 20:26:49 +00:00
|
|
|
(
|
|
|
|
open_help: Some(( code: F(1), modifiers: ( bits: 0,),)),
|
2023-11-23 14:27:53 +00:00
|
|
|
|
2023-11-26 20:26:49 +00:00
|
|
|
move_left: Some(( code: Char('h'), modifiers: ( bits: 0,),)),
|
|
|
|
move_right: Some(( code: Char('l'), modifiers: ( bits: 0,),)),
|
|
|
|
move_up: Some(( code: Char('k'), modifiers: ( bits: 0,),)),
|
|
|
|
move_down: Some(( code: Char('j'), modifiers: ( bits: 0,),)),
|
2023-11-23 14:27:53 +00:00
|
|
|
|
2023-11-26 20:26:49 +00:00
|
|
|
popup_up: Some(( code: Char('p'), modifiers: ( bits: 2,),)),
|
|
|
|
popup_down: Some(( code: Char('n'), modifiers: ( bits: 2,),)),
|
|
|
|
page_up: Some(( code: Char('b'), modifiers: ( bits: 2,),)),
|
|
|
|
page_down: Some(( code: Char('f'), modifiers: ( bits: 2,),)),
|
|
|
|
home: Some(( code: Char('g'), modifiers: ( bits: 0,),)),
|
|
|
|
end: Some(( code: Char('G'), modifiers: ( bits: 1,),)),
|
|
|
|
shift_up: Some(( code: Char('K'), modifiers: ( bits: 1,),)),
|
|
|
|
shift_down: Some(( code: Char('J'), modifiers: ( bits: 1,),)),
|
2023-11-23 14:27:53 +00:00
|
|
|
|
2023-11-26 20:26:49 +00:00
|
|
|
edit_file: Some(( code: Char('I'), modifiers: ( bits: 1,),)),
|
2023-11-23 14:27:53 +00:00
|
|
|
|
2023-11-26 20:26:49 +00:00
|
|
|
status_reset_item: Some(( code: Char('U'), modifiers: ( bits: 1,),)),
|
2023-11-23 14:27:53 +00:00
|
|
|
|
2023-11-26 20:26:49 +00:00
|
|
|
diff_reset_lines: Some(( code: Char('u'), modifiers: ( bits: 0,),)),
|
|
|
|
diff_stage_lines: Some(( code: Char('s'), modifiers: ( bits: 0,),)),
|
2023-11-23 14:27:53 +00:00
|
|
|
|
2023-11-26 20:26:49 +00:00
|
|
|
stashing_save: Some(( code: Char('w'), modifiers: ( bits: 0,),)),
|
|
|
|
stashing_toggle_index: Some(( code: Char('m'), modifiers: ( bits: 0,),)),
|
2023-11-23 14:27:53 +00:00
|
|
|
|
2023-11-26 20:26:49 +00:00
|
|
|
stash_open: Some(( code: Char('l'), modifiers: ( bits: 0,),)),
|
|
|
|
|
|
|
|
abort_merge: Some(( code: Char('M'), modifiers: ( bits: 1,),)),
|
|
|
|
)
|
2023-11-23 14:27:53 +00:00
|
|
|
'';
|
|
|
|
};
|
2023-11-20 07:54:29 +00:00
|
|
|
};
|
|
|
|
}
|