2024-01-23 19:13:42 -06:00
|
|
|
|
{
|
2024-03-18 17:20:18 -05:00
|
|
|
|
inputs,
|
2024-01-23 19:13:42 -06:00
|
|
|
|
lib,
|
|
|
|
|
pkgs,
|
2024-03-18 17:20:18 -05:00
|
|
|
|
config,
|
2024-01-23 19:13:42 -06:00
|
|
|
|
...
|
|
|
|
|
}: let
|
2024-02-27 10:11:44 -06:00
|
|
|
|
inherit (lib) mkOption mkIf types;
|
|
|
|
|
cfg = config.oizys.cli;
|
2024-01-23 19:13:42 -06:00
|
|
|
|
in {
|
2024-02-27 10:11:44 -06:00
|
|
|
|
options.oizys.cli.enable = mkOption {
|
|
|
|
|
default = true;
|
|
|
|
|
description = "Whether to enable cli.";
|
|
|
|
|
type = types.bool;
|
|
|
|
|
};
|
|
|
|
|
|
2024-01-23 15:50:42 -06:00
|
|
|
|
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-03-18 17:20:18 -05:00
|
|
|
|
inputs.tsm.packages.${pkgs.system}.tsm
|
2024-01-23 19:13:42 -06:00
|
|
|
|
];
|
|
|
|
|
};
|
2024-01-23 11:51:13 -06:00
|
|
|
|
}
|