Nyx-Modules/Modules/Home/Shell/cli-tools/tools.nix

42 lines
908 B
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# CLI Tools (Home Module)
#
# Provides:
# - A curated set of command-line utilities in users environment
# - Examples: fastfetch, hyfetch, bat, fzf, tree, lsd, tmux
#
# Options:
# - enable → Enable CLI tools collection
# - extra → List of extra packages to install
{
config,
lib,
pkgs,
...
}: let
cfg = config.nyx-module.home.cli-tools;
in {
options.nyx-module.home.cli-tools = {
enable = lib.mkEnableOption "Enable CLI tools (home module)";
extra = lib.mkOption {
type = lib.types.listOf lib.types.package;
default = [];
example = [pkgs.ripgrep pkgs.htop];
description = "Extra CLI tools to install in addition to the defaults.";
};
};
config = lib.mkIf cfg.enable {
home.packages = with pkgs;
[
fastfetch
hyfetch
bat
fzf
tree
lsd
tmux
]
++ cfg.extra;
};
}