helm/modules/shell/zsh.nix

39 lines
708 B
Nix
Raw Normal View History

2019-08-06 10:56:54 -07:00
{ config, pkgs, libs, ... }:
{
environment = {
systemPackages = with pkgs; [
zsh
nix-zsh-completions
fasd
2019-11-24 18:42:25 -08:00
bat
2019-08-06 10:56:54 -07:00
exa
fd
2019-11-26 14:00:28 -08:00
fzf
2019-08-06 10:56:54 -07:00
tmux
htop
tree
];
2019-12-08 23:56:13 -08:00
variables = {
ZDOTDIR = "$XDG_CONFIG_HOME/zsh";
ZSH_CACHE = "$XDG_CACHE_HOME/zsh";
};
2019-08-06 10:56:54 -07:00
};
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
2019-12-08 20:59:16 -08:00
"zsh" = {
source = <config/zsh>;
recursive = true;
};
2019-08-06 10:56:54 -07:00
};
}