mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 08:07:45 +00:00
Add tools
This commit is contained in:
parent
7ad646f580
commit
4dc6ab7864
5 changed files with 46 additions and 44 deletions
|
|
@ -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
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue