2023-09-13 19:11:31 +05:30
|
|
|
{ config, ... }:
|
2022-04-17 22:00:28 +05:30
|
|
|
|
|
|
|
{
|
2022-06-21 19:08:19 +05:30
|
|
|
home.stateVersion = "22.05";
|
|
|
|
|
2022-04-17 22:00:28 +05:30
|
|
|
programs = {
|
2022-05-14 11:47:47 +05:30
|
|
|
bat.enable = true;
|
|
|
|
|
2022-04-17 22:00:28 +05:30
|
|
|
git = {
|
|
|
|
enable = true;
|
|
|
|
aliases = {
|
|
|
|
br = "branch";
|
|
|
|
co = "checkout";
|
|
|
|
# last 5 commits in shortlog-style, with colors
|
|
|
|
last = "log -5 --abbrev-commit --pretty=format:\"%C(cyan)%h%Creset %C(yellow bold)%d%C(reset) %s %Cgreenby %an %cr%Creset\" HEAD";
|
|
|
|
# all history, in shortlog-style, with colors (short for colorlog)
|
|
|
|
cl = "log --abbrev-commit --pretty=format:\"%C(cyan)%h%Creset %C(yellow bold)%d%C(reset) %s %Cgreenby %an %cr%Creset\" HEAD";
|
|
|
|
};
|
2023-06-08 23:22:45 +05:30
|
|
|
userEmail = "payas@relekar.org";
|
2022-04-17 22:00:28 +05:30
|
|
|
userName = "Payas Relekar";
|
|
|
|
extraConfig = {
|
|
|
|
core = {
|
|
|
|
editor = "nvim";
|
|
|
|
};
|
|
|
|
merge = {
|
|
|
|
conflictstyle = "zdiff3";
|
|
|
|
};
|
2022-04-22 00:36:05 +05:30
|
|
|
rerere = {
|
|
|
|
enable = true;
|
|
|
|
autoUpdate = true;
|
|
|
|
};
|
2022-04-17 22:00:28 +05:30
|
|
|
};
|
2023-10-28 19:27:44 +05:30
|
|
|
delta = {
|
|
|
|
enable = true;
|
|
|
|
options = {
|
|
|
|
line-numbers = true;
|
|
|
|
side-by-side = true;
|
|
|
|
navigate = true;
|
|
|
|
};
|
|
|
|
};
|
2022-04-17 22:00:28 +05:30
|
|
|
};
|
|
|
|
|
2023-09-10 18:11:14 +05:30
|
|
|
eza = {
|
2023-04-20 14:32:51 +05:30
|
|
|
enable = true;
|
2024-03-13 23:15:53 +05:30
|
|
|
enableBashIntegration = true;
|
|
|
|
enableFishIntegration = true;
|
2023-04-20 14:32:51 +05:30
|
|
|
icons = true;
|
2023-09-10 18:11:14 +05:30
|
|
|
git = true;
|
|
|
|
extraOptions = [
|
|
|
|
"--group-directories-first"
|
|
|
|
"--header"
|
|
|
|
];
|
2023-04-20 14:32:51 +05:30
|
|
|
};
|
|
|
|
|
2022-04-17 22:00:28 +05:30
|
|
|
fzf = {
|
|
|
|
enable = true;
|
2023-04-20 14:32:32 +05:30
|
|
|
enableBashIntegration = true;
|
2022-04-17 22:00:28 +05:30
|
|
|
enableFishIntegration = true;
|
2023-04-20 14:32:32 +05:30
|
|
|
tmux.enableShellIntegration = true;
|
2022-04-17 22:00:28 +05:30
|
|
|
};
|
|
|
|
|
2023-09-13 17:08:50 +05:30
|
|
|
zoxide = {
|
|
|
|
enable = true;
|
|
|
|
enableBashIntegration = true;
|
|
|
|
enableFishIntegration = true;
|
|
|
|
options = [ ];
|
|
|
|
};
|
|
|
|
|
2023-05-16 13:03:08 +05:30
|
|
|
atuin = {
|
|
|
|
enable = true;
|
|
|
|
enableFishIntegration = true;
|
|
|
|
settings = {
|
|
|
|
auto_sync = true;
|
|
|
|
sync_frequency = "5m";
|
|
|
|
sync_address = "https://api.atuin.sh";
|
|
|
|
search_mode = "fuzzy";
|
|
|
|
style = "compact";
|
|
|
|
inline_height = 12;
|
|
|
|
show_preview = false;
|
|
|
|
update_check = false;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2022-05-14 11:47:47 +05:30
|
|
|
broot = {
|
|
|
|
enable = true;
|
|
|
|
enableBashIntegration = true;
|
|
|
|
enableFishIntegration = true;
|
|
|
|
};
|
|
|
|
|
2022-04-17 22:00:28 +05:30
|
|
|
htop = {
|
|
|
|
enable = true;
|
2022-05-14 20:28:16 +05:30
|
|
|
settings = {
|
|
|
|
color_scheme = 6;
|
|
|
|
delay = 15;
|
|
|
|
fields = with config.lib.htop.fields; [
|
|
|
|
PID
|
|
|
|
USER
|
|
|
|
PERCENT_CPU
|
|
|
|
PERCENT_MEM
|
|
|
|
TIME
|
|
|
|
COMM
|
|
|
|
];
|
|
|
|
enable_mouse = 1;
|
|
|
|
highlight_deleted_exe = 1;
|
|
|
|
highlight_megabytes = 1;
|
|
|
|
highlight_threads = 1;
|
|
|
|
highlight_changes = 0;
|
|
|
|
highlight_changes_delay_secs = 5;
|
|
|
|
highlight_base_name = 1;
|
|
|
|
tree_view = 1;
|
|
|
|
tree_view_always_by_pid = 0;
|
|
|
|
cpu_count_from_one = 1;
|
|
|
|
show_cpu_usage = 1;
|
|
|
|
show_cpu_frequency = 1;
|
|
|
|
show_cpu_temperature = 1;
|
|
|
|
degree_fahrenheit = 0;
|
|
|
|
hide_function_bar = 0;
|
2022-12-12 14:12:06 +05:30
|
|
|
show_program_path = 0;
|
2022-05-14 20:28:16 +05:30
|
|
|
} // (with config.lib.htop; leftMeters [
|
|
|
|
(bar "LeftCPUs")
|
|
|
|
(bar "Memory")
|
|
|
|
(text "LoadAverage")
|
|
|
|
(text "Uptime")
|
|
|
|
]) // (with config.lib.htop; rightMeters [
|
|
|
|
(bar "RightCPUs")
|
|
|
|
(bar "Swap")
|
|
|
|
(text "Tasks")
|
|
|
|
(text "Systemd")
|
|
|
|
]);
|
2022-04-17 22:00:28 +05:30
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|