added git config, gave up on formatting nix with helix
This commit is contained in:
parent
89f09efb95
commit
fc7c67c27b
|
@ -19,11 +19,6 @@
|
||||||
language-servers = ["java-language-server"];
|
language-servers = ["java-language-server"];
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
|
||||||
name = "nix";
|
|
||||||
auto-format = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
{
|
{
|
||||||
name = "latex";
|
name = "latex";
|
||||||
indent.tab-width = 2;
|
indent.tab-width = 2;
|
||||||
|
|
|
@ -12,11 +12,6 @@
|
||||||
"$HOME/.local/bin"
|
"$HOME/.local/bin"
|
||||||
"$HOME/.dotnet"
|
"$HOME/.dotnet"
|
||||||
];
|
];
|
||||||
shellAliases = {
|
|
||||||
gaa = "git add .";
|
|
||||||
gcm = "git commit -m";
|
|
||||||
gpom = "git push -u origin main";
|
|
||||||
};
|
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
wineWowPackages.unstable
|
wineWowPackages.unstable
|
||||||
comic-mono
|
comic-mono
|
||||||
|
|
|
@ -1,41 +1,17 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./kitty.nix
|
./kitty.nix
|
||||||
|
./git.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.eza = {
|
programs.eza = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableAliases = true;
|
enableAliases = true;
|
||||||
git = true;
|
git = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.bat = {
|
programs.bat = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
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,
|
|
||||||
)
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
58
users/tacocat/programs/git.nix
Normal file
58
users/tacocat/programs/git.nix
Normal file
|
@ -0,0 +1,58 @@
|
||||||
|
{
|
||||||
|
programs.git = {
|
||||||
|
enable = true;
|
||||||
|
userEmail = "tacocat@chytrid.org";
|
||||||
|
userName = "Aria Nolan";
|
||||||
|
extraConfig = {
|
||||||
|
init.defaultbranch = "main";
|
||||||
|
};
|
||||||
|
aliases = {
|
||||||
|
co = "checkout";
|
||||||
|
aa = "add .";
|
||||||
|
pom = "push -u origin main";
|
||||||
|
cm = "commit -m";
|
||||||
|
};
|
||||||
|
delta = {
|
||||||
|
enable = true;
|
||||||
|
options = {
|
||||||
|
decorations = {
|
||||||
|
commit-decoration-style = "bold yellow box ul";
|
||||||
|
file-decoration-style = "none";
|
||||||
|
file-style = "bold yellow ul";
|
||||||
|
};
|
||||||
|
features = "decorations";
|
||||||
|
whitespace-error-style = "22 reverse";
|
||||||
|
syntax-theme = "ansi";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
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,
|
||||||
|
)
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
|
@ -19,10 +19,25 @@
|
||||||
"$git_state"
|
"$git_state"
|
||||||
"$git_status"
|
"$git_status"
|
||||||
"$package"
|
"$package"
|
||||||
|
"$nix_shell"
|
||||||
|
"$cmd_duration"
|
||||||
"$status"
|
"$status"
|
||||||
"$character"
|
"$character"
|
||||||
];
|
];
|
||||||
scan_timeout = 10;
|
scan_timeout = 10;
|
||||||
|
git_commit.tag_disabled = false;
|
||||||
|
git_status = {
|
||||||
|
ahead = ''⇡''${count}'';
|
||||||
|
behind = ''⇣''${count}'';
|
||||||
|
diverged = ''⇕⇡''${ahead_count}⇣''${behind_count}'';
|
||||||
|
staged = "+$count";
|
||||||
|
};
|
||||||
|
nix_shell = {
|
||||||
|
format = "via [$symbol$state]($style) ";
|
||||||
|
impure_msg = "ι";
|
||||||
|
pure_msg = "ρ";
|
||||||
|
symbol = "❄️";
|
||||||
|
};
|
||||||
# character = {
|
# character = {
|
||||||
# success_symbol = "[%](bold green)";
|
# success_symbol = "[%](bold green)";
|
||||||
# error_symbol = "[%](bold red)";
|
# error_symbol = "[%](bold red)";
|
||||||
|
|
Loading…
Reference in a new issue