{ 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; }; }; }; exa = { enable = true; enableAliases = true; git = true; icons = true; }; fzf = { enable = true; enableBashIntegration = true; enableFishIntegration = true; tmux.enableShellIntegration = true; }; 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; }; neovim = { enable = true; vimAlias = true; extraConfig = '' set nobackup set number set relativenumber ''; withPython3 = false; withRuby = false; }; 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") ]); }; }; }