helm/modules/shell/zsh.nix
2019-12-09 02:56:13 -05:00

39 lines
708 B
Nix

{ config, pkgs, libs, ... }:
{
environment = {
systemPackages = with pkgs; [
zsh
nix-zsh-completions
fasd
bat
exa
fd
fzf
tmux
htop
tree
];
variables = {
ZDOTDIR = "$XDG_CONFIG_HOME/zsh";
ZSH_CACHE = "$XDG_CACHE_HOME/zsh";
};
};
programs.zsh = {
enable = true;
enableCompletion = true;
enableGlobalCompInit = false; # I'll do it myself
promptInit = "";
};
home-manager.users.hlissner.xdg.configFile = {
# link recursively so other modules can link files in this folder,
# particularly in zsh/rc.d/*.zsh
"zsh" = {
source = <config/zsh>;
recursive = true;
};
};
}