Files
NixVM/nixos/modules/users/zsh.nix

38 lines
684 B
Nix
Raw Normal View History

2025-11-19 19:30:42 +01:00
{
2025-11-19 20:52:22 +01:00
pkgs,
user,
...
}: {
users.users.${user}.packages = with pkgs; [
fzf
2025-11-19 19:30:42 +01:00
];
2025-11-19 20:52:22 +01:00
2025-11-19 19:30:42 +01:00
# ZSH configuration
programs.zsh = {
2025-11-19 20:52:22 +01:00
enable = true;
enableCompletion = true;
autosuggestions.enable = true;
syntaxHighlighting.enable = true;
histSize = 10000;
histFile = "$HOME/.zsh_history";
setOptions = [
"HIST_IGNORE_ALL_DUPS"
"APPEND_HISTORY"
"SHARE_HISTORY"
"HIST_IGNORE_SPACE"
"EXTENDED_GLOB"
"CORRECT"
];
shellInit = ''
eval "$(fzf --zsh)"
alias ..="cd .."
alias ...="cd ../.."
'';
};
2025-11-19 19:30:42 +01:00
# Setting aliases
environment.shellAliases = {
2025-11-19 20:52:22 +01:00
ls = "ls -l --color --hyperlink=auto";
};
2025-11-19 19:30:42 +01:00
}