Add tools

This commit is contained in:
muon 2024-09-30 14:02:27 +00:00
parent 7ad646f580
commit 4dc6ab7864
5 changed files with 46 additions and 44 deletions

View file

@ -1,36 +1,35 @@
{ pkgs, lib, config, ... }:
let
cfg = config.mods.terminal;
let cfg = config.mods.terminal;
in with lib; {
options.mods.terminal.tools.enable = mkEnableOption "enables cli tools";
config = mkIf cfg.tools.enable {
programs.zellij = {
enable = true;
# enableZshIntegration = mkIf cfg.zsh.enable true;
};
programs.fzf = {
enable = true;
enableZshIntegration = mkIf cfg.zsh.enable true;
};
programs = builtins.listToAttrs (map (name: {
name = name;
value = {
enable = true;
} // optionalAttrs
(builtins.hasAttr "enableZshIntegration" config.programs.${name}) {
enableZshIntegration = mkIf cfg.zsh.enable true;
};
}) [
"zellij"
"fzf"
"eza"
"bat"
"zoxide"
"dircolors"
"yazi"
"nix-index"
"thefuck"
programs.zoxide = {
enable = true;
enableZshIntegration = mkIf cfg.zsh.enable true;
};
programs.dircolors = {
enable = true;
enableZshIntegration = mkIf cfg.zsh.enable true;
};
programs.yazi = {
enable = true;
enableZshIntegration = mkIf cfg.zsh.enable true;
};
programs.lazygit.enable = true;
"lazygit"
"fd"
"ripgrep"
"bottom"
"htop"
]);
home.packages = with pkgs; [
# libraries
@ -38,13 +37,11 @@ in with lib; {
ueberzugpp
# file managing
fd
ripgrep
trash-cli
# programs
bottom
fend
unzip
];
};
}