This commit is contained in:
Peritia 2025-09-10 12:17:16 +02:00
parent fc0abdd4bb
commit aca73cdd0f
73 changed files with 3873 additions and 381 deletions

View file

@ -1,20 +1,40 @@
# 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.tools;
cfg = config.nyx-module.home.cli-tools;
in
{
options.nyx-module.home.tools = {
enable = lib.mkEnableOption "Enable tools (home) module";
options.nyx-module.home.cli-tools = {
enable = lib.mkEnableOption "Enable CLI tools (home module)";
package = lib.mkOption {
type = lib.types.package;
default = pkgs.tools;
description = "Package to install for tools.";
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 = [ cfg.package ];
home.packages = with pkgs; [
fastfetch
hyfetch
bat
fzf
tree
lsd
tmux
] ++ cfg.extra;
};
}

View file

@ -1,3 +1,12 @@
# Zsh (Home Module)
#
# Provides:
# - Zsh shell in the user profile
# - Zsh completion, autosuggestions, and syntax highlighting
#
# Options:
# - enable → Enable Zsh in the user profile
{ config, lib, pkgs, ... }:
let
@ -5,16 +14,44 @@ let
in
{
options.nyx-module.home.zsh = {
enable = lib.mkEnableOption "Enable zsh (home) module";
package = lib.mkOption {
type = lib.types.package;
default = pkgs.zsh;
description = "Package to install for zsh.";
};
enable = lib.mkEnableOption "Enable Zsh (home module)";
};
config = lib.mkIf cfg.enable {
home.packages = [ cfg.package ];
programs.zsh = {
enable = true;
enableCompletion = true;
plugins = [
{
name = "zsh-autosuggestions";
src = pkgs.zsh-autosuggestions;
}
{
name = "zsh-syntax-highlighting";
src = pkgs.zsh-syntax-highlighting;
}
];
initExtra = ''
hyfetch
alias ls='lsd'
alias l='ls -l'
alias la='ls -a'
alias lla='ls -la'
alias lt='ls --tree'
HISTFILE=~/.zsh_history
HISTSIZE=10000
SAVEHIST=10000
setopt appendhistory
'';
};
home.packages = with pkgs; [
zsh-autosuggestions
zsh-syntax-highlighting
];
};
}