Configure zsh

This commit is contained in:
muon 2024-06-12 14:56:28 +00:00
parent c9b3277d95
commit 349e926e32
6 changed files with 60 additions and 25 deletions

View file

@ -1,8 +1,24 @@
{ pkgs, lib, config, ... }: {
options.mods.terminal.tools.enable = lib.mkEnableOption "enables cli tools";
{ pkgs, lib, config, ... }:
let
cfg = config.mods.terminal;
in with lib; {
options.mods.terminal.tools.enable = mkEnableOption "enables cli tools";
config = lib.mkIf config.mods.terminal.tools.enable {
programs.zellij.enable = true;
config = mkIf cfg.tools.enable {
programs.zellij = {
enable = true;
enableZshIntegration = mkIf cfg.zsh.enable true;
};
programs.zoxide = {
enable = true;
enableZshIntegration = mkIf cfg.zsh.enable true;
};
programs.dircolors = {
enable = true;
enableZshIntegration = mkIf cfg.zsh.enable true;
};
home.packages = with pkgs; [
# libraries