{ 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)"; }; }; }; }; }