2024-01-23 19:13:42 -06:00
|
|
|
|
{
|
|
|
|
|
config,
|
|
|
|
|
lib,
|
|
|
|
|
pkgs,
|
|
|
|
|
...
|
|
|
|
|
}: let
|
2024-01-23 15:50:42 -06:00
|
|
|
|
inherit (lib) mkEnableOption mkIf;
|
|
|
|
|
cfg = config.cli;
|
2024-01-23 19:13:42 -06:00
|
|
|
|
in {
|
2024-01-23 15:50:42 -06:00
|
|
|
|
options.cli.enable = mkEnableOption "cli";
|
|
|
|
|
config = mkIf cfg.enable {
|
2024-01-23 19:13:42 -06:00
|
|
|
|
programs.direnv.enable = true;
|
2024-01-29 08:45:23 -06:00
|
|
|
|
environment.sessionVariables = {
|
|
|
|
|
DIRENV_LOG_FORMAT = "[2mdirenv: %s[0m";
|
|
|
|
|
};
|
|
|
|
|
|
2024-01-23 19:13:42 -06:00
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
|
chezmoi
|
|
|
|
|
zoxide
|
|
|
|
|
lsd
|
|
|
|
|
fzf
|
2024-01-23 15:50:42 -06:00
|
|
|
|
|
2024-01-23 19:13:42 -06:00
|
|
|
|
# utils
|
|
|
|
|
fd
|
|
|
|
|
bat
|
|
|
|
|
delta
|
|
|
|
|
ripgrep
|
2024-01-23 15:50:42 -06:00
|
|
|
|
|
2024-01-23 19:13:42 -06:00
|
|
|
|
btop
|
|
|
|
|
];
|
|
|
|
|
};
|
2024-01-23 11:51:13 -06:00
|
|
|
|
}
|