132 lines
3.1 KiB
Nix
132 lines
3.1 KiB
Nix
{ config, ... }:
|
|
|
|
{
|
|
home.stateVersion = "22.05";
|
|
|
|
programs = {
|
|
bat.enable = true;
|
|
|
|
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";
|
|
};
|
|
userEmail = "payas@relekar.org";
|
|
userName = "Payas Relekar";
|
|
extraConfig = {
|
|
core = {
|
|
editor = "nvim";
|
|
};
|
|
merge = {
|
|
conflictstyle = "zdiff3";
|
|
};
|
|
rerere = {
|
|
enable = true;
|
|
autoUpdate = true;
|
|
};
|
|
};
|
|
delta = {
|
|
enable = true;
|
|
options = {
|
|
line-numbers = true;
|
|
side-by-side = true;
|
|
navigate = true;
|
|
};
|
|
};
|
|
};
|
|
|
|
eza = {
|
|
enable = true;
|
|
enableBashIntegration = true;
|
|
enableFishIntegration = true;
|
|
icons = true;
|
|
git = true;
|
|
extraOptions = [
|
|
"--group-directories-first"
|
|
"--header"
|
|
];
|
|
};
|
|
|
|
fzf = {
|
|
enable = true;
|
|
enableBashIntegration = true;
|
|
enableFishIntegration = true;
|
|
tmux.enableShellIntegration = true;
|
|
};
|
|
|
|
zoxide = {
|
|
enable = true;
|
|
enableBashIntegration = true;
|
|
enableFishIntegration = true;
|
|
options = [ ];
|
|
};
|
|
|
|
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;
|
|
};
|
|
};
|
|
|
|
broot = {
|
|
enable = true;
|
|
enableBashIntegration = true;
|
|
enableFishIntegration = true;
|
|
};
|
|
|
|
htop = {
|
|
enable = true;
|
|
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;
|
|
show_program_path = 0;
|
|
} // (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")
|
|
]);
|
|
};
|
|
};
|
|
}
|