{ config, pkgs, lib, ... }: with import ../lib/theme.nix { inherit lib; }; let dominantEscapeCode = fgEscapeCode config.theme.colors.dominant; bgDominantEscapeCode = bgEscapeCode config.theme.colors.dominant; backgroundEscapeCode = fgEscapeCode config.theme.colors.background; in { imports = [ ./commandline/dircolors.nix ./commandline/git.nix ./commandline/htop.nix ./commandline/tmux.nix ./commandline/zsh.nix ]; environment.shellAliases = { ll = "ls -l"; e = "\${EDITOR}"; cpr = "${pkgs.rsync}/bin/rsync -ah --inplace --info=progress2"; }; programs.bash = { enableCompletion = true; interactiveShellInit = '' eval "$(${pkgs.starship}/bin/starship init bash)" PATH="${pkgs.pazi}/bin:$PATH" eval "$(pazi init bash)" ''; }; programs.less = { envVariables = { LESS = "-W -z-4 -R -J"; LESS_TERMCAP_mb = dominantEscapeCode; LESS_TERMCAP_md = dominantEscapeCode; LESS_TERMCAP_so = bgDominantEscapeCode + backgroundEscapeCode + "$(tput bold)"; }; }; security.sudo.extraConfig = let lectureFile = builtins.toFile "sudoers.lecture" ''  ${dominantEscapeCode}"Bee" careful __ ${dominantEscapeCode}with sudo! // \ \\_/ // '''-.._.-'''-.._.. -(||)(') '''' ''; in '' Defaults lecture = always Defaults lecture_file = "${lectureFile}" ''; home-manager.users.minijackson = { ... }: { # TODO xdg.configFile."starship.toml".text = '' [directory] fish_style_pwd_dir_length = 2 style = "bold blue" [git_branch] symbol = "branch " [git_status] ahead = "^" behind = "v" deleted = "x" [jobs] symbol = "+ " [package] symbol = "version " style = "bold green" disabled = true [rust] symbol = "rust " style = "bold dimmed yellow" [nix_shell] style = "bold blue" [character] symbol = ">" ''; programs.bat = { enable = true; config = { theme = "TwoDark"; }; }; }; home-manager.users.root = { ... }: { programs.bat = config.home-manager.users.minijackson.programs.bat; }; }