mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 16:17:46 +00:00
50 lines
894 B
Nix
50 lines
894 B
Nix
{ pkgs, lib, config, ... }:
|
|
let cfg = config.mods.terminal;
|
|
in with lib; {
|
|
options.mods.terminal.tools.enable = mkEnableOption "enables cli tools";
|
|
|
|
config = mkIf cfg.tools.enable {
|
|
|
|
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"
|
|
"nix-index"
|
|
"thefuck"
|
|
|
|
"lazygit"
|
|
"fd"
|
|
"ripgrep"
|
|
"bottom"
|
|
"htop"
|
|
"vifm"
|
|
]);
|
|
|
|
home.packages = with pkgs; [
|
|
# libraries
|
|
glow
|
|
ueberzugpp
|
|
|
|
# file managing
|
|
trash-cli
|
|
dua
|
|
fdupes
|
|
vifm
|
|
|
|
# programs
|
|
fend
|
|
unzip
|
|
];
|
|
};
|
|
}
|