- Add aerc, a terminal email client - Switch to gruvbox colorschemes - Improve base16 Support in kakoune - Add buffer switch binding in kakoune - Correct quick file openers to real files in kakoune - Add proper tab indentation and quick selection to kakoune - Add markdown support and harper spellcheck in kakoune - Import shellpath into a kakoune variable so it can be used in kakscripts - Add render markdown on toggle to kakoune to see approximate of final output - Add lazygit with config for visual git grepping - Add gdb debugger to C language - Add CLI tools: pv, mtr, shellcheck, wiki-tui and ddgr - Add tree as an alias to eza - Bash source .profile - Theme yazi with base16 - Add zk zettelkasten for note taking - Make home.nix imports look nicer
93 lines
2.2 KiB
Nix
93 lines
2.2 KiB
Nix
{ config, pkgs, lib, ... }:
|
|
|
|
{
|
|
options.shellpath = lib.mkOption {
|
|
type = lib.types.str;
|
|
default = "${config.home.homeDirectory}/.nix-profile/bin/bash";
|
|
description = "Local path to shell";
|
|
};
|
|
|
|
config = {
|
|
# Packages without home-manager configs
|
|
home.packages = with pkgs; [
|
|
pv
|
|
mtr
|
|
shellcheck
|
|
wiki-tui
|
|
ddgr
|
|
];
|
|
|
|
home.shellAliases = {
|
|
# Aliases to replace packages
|
|
tree = "eza --tree";
|
|
|
|
# Aliases to fix issues
|
|
mtr = "TERM=xterm-256color sudo mtr";
|
|
};
|
|
|
|
# Packages with extra configs
|
|
programs.bash = {
|
|
enable = true;
|
|
bashrcExtra = "source ~/.profile";
|
|
};
|
|
programs.bat = {
|
|
enable = true;
|
|
extraPackages = with pkgs.bat-extras; [ batdiff batman ];
|
|
};
|
|
programs.eza = {
|
|
enable = true;
|
|
icons = null;
|
|
};
|
|
programs.starship = {
|
|
enable = true;
|
|
settings = {
|
|
format = lib.concatStringsSep " " [
|
|
"$nix_shell"
|
|
"$directory"
|
|
"$git_branch"
|
|
"$git_status"
|
|
"$git_commit"
|
|
"$status"
|
|
"$fill"
|
|
"$lua"
|
|
"$rust"
|
|
"$golang"
|
|
"$haskell"
|
|
"$jobs"
|
|
"$cmd_duration"
|
|
"$line_break"
|
|
"$character"];
|
|
|
|
nix_shell.format = "[nix]($style)";
|
|
directory.truncation_length = 2;
|
|
git_branch = {
|
|
format = "[$branch(:$remote_branch)]($style)";
|
|
ignore_branches = ["master" "main"];
|
|
};
|
|
git_status.format = "([\\[$all_status$ahead_behind\\]]($style))";
|
|
git_commit.format = "[\\[#$hash$tag\\]]($style)";
|
|
status = {
|
|
format = "[\\[$status\\]]($style)";
|
|
disabled = false;
|
|
};
|
|
fill.symbol = " ";
|
|
lua = {
|
|
format = "[($version)]($style)";
|
|
version_format = "$major.$minor";
|
|
detect_files = [".lua-version" ".luarc.json"];
|
|
};
|
|
rust = {
|
|
format = "[($version)]($style)";
|
|
version_format = "$major.$minor";
|
|
};
|
|
haskell.format = "[($ghc_version)]($style)";
|
|
cmd_duration.format = "[$duration]($style) ";
|
|
character = {
|
|
success_symbol = "[>](bold #a6e3a1)";
|
|
error_symbol = "[>](bold #f38ba8)";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|