This repository has been archived on 2024-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
nixos/modules/common-home.nix

133 lines
3.1 KiB
Nix
Raw Normal View History

{ config, ... }:
{
2022-06-21 19:08:19 +05:30
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";
};
2023-06-08 23:22:45 +05:30
userEmail = "payas@relekar.org";
userName = "Payas Relekar";
extraConfig = {
core = {
editor = "nvim";
};
merge = {
conflictstyle = "zdiff3";
};
rerere = {
enable = true;
autoUpdate = true;
};
};
2023-10-28 19:27:44 +05:30
delta = {
enable = true;
options = {
line-numbers = true;
side-by-side = true;
navigate = true;
};
};
};
eza = {
enable = true;
2024-03-13 23:15:53 +05:30
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;
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;
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")
]);
};
};
}