refactor(homeModules/cli): move zsh config to module

This commit is contained in:
Mohammad Rafiq 2025-05-20 11:43:16 +08:00
parent 991a10ca18
commit 97e4bf372b
No known key found for this signature in database
4 changed files with 5 additions and 8 deletions

View file

@ -3,10 +3,12 @@
imports = [
./file-browser/yazi.nix
./editor/nvf.nix
./shell/zsh.nix
./utilities/git.nix
];
options.cli = {
shell = lib.pantheon.mkStrOption;
editor = lib.pantheon.mkStrOption;
file-browser = lib.pantheon.mkStrOption;
};

View file

@ -0,0 +1,15 @@
{ config, lib, ... }:
{
config = lib.mkIf (config.cli.shell == "zsh") {
home.sessionVariables.SHELL = "zsh";
programs.zsh = {
enable = true;
enableVteIntegration = true;
syntaxHighlighting.enable = true;
history.share = true;
history.size = 10000;
history.ignoreDups = true;
history.ignoreSpace = true;
};
};
}