home-manager/shell/zsh.nix

66 lines
1.5 KiB
Nix
Raw Normal View History

2023-10-09 20:18:11 +00:00
{
2023-10-13 16:11:33 +00:00
config,
pkgs,
...
}: {
programs.zsh = {
enable = true;
enableAutosuggestions = true;
enableCompletion = true;
syntaxHighlighting.enable = true;
autocd = true;
defaultKeymap = null;
dotDir = ".config/zsh";
history = {
ignoreSpace = true;
path = "${config.xdg.dataHome}/zsh/zsh_history";
save = 10000;
};
historySubstringSearch.enable = true;
plugins = [
{
name = "powerlevel10k";
file = "powerlevel10k.zsh-theme";
src = pkgs.fetchFromGitHub {
owner = "romkatv";
repo = "powerlevel10k";
rev = "v1.19.0";
sha256 = "+hzjSbbrXr0w1rGHm6m2oZ6pfmD6UUDBfPd7uMg5l5c=";
};
}
2023-10-11 03:50:03 +00:00
2023-10-13 16:11:33 +00:00
{
name = "z.lua";
src = pkgs.fetchFromGitHub {
owner = "skywind3000";
repo = "z.lua";
rev = "1.8.16";
sha256 = "VVJXBVENXlJXVj831Hx4sa7AzGHXpsui6tga9uA6ZnE=";
};
}
2023-10-11 03:50:03 +00:00
2023-10-13 16:11:33 +00:00
{
name = "zsh-vi-mode";
src = pkgs.fetchFromGitHub {
owner = "jeffreytse";
repo = "zsh-vi-mode";
rev = "v0.10.0";
sha256 = "QE6ZwwM2X0aPqNnbVrj0y7w9hmuRf0H1j8nXYwyoLo4=";
};
}
];
shellAliases = {
ls = "eza";
la = "eza -la";
l = "eza -l";
};
initExtra = ''
source ~/.config/zsh/.p10k.zsh
'';
localVariables = {
POWERLEVEL9K_DISABLE_CONFIGURATION_WIZARD = true;
};
};
home.file.".config/zsh/.p10k.zsh".source = ./.p10k.zsh;
2023-10-09 20:18:11 +00:00
}