nicks-nix-config/modules/zsh.nix

44 lines
672 B
Nix
Raw Normal View History

2022-10-09 15:15:30 -07:00
{ config, pkgs, lib, ... }:
let
in
{
programs.zsh = {
enable = true; # technically also enabled in user shell
dotDir = ".config/zsh";
initExtraFirst = ''
neofetch
'';
initExtra = ''
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
'';
2022-10-09 15:15:30 -07:00
autocd = true;
history = {
path = "$HOME/.histfile";
size = 2000;
share = true;
ignoreDups = false;
};
plugins = [
{
name = "powerline10k";
src = pkgs.zsh-powerlevel10k;
file = "share/zsh-powerlevel10k/powerlevel10k.zsh-theme";
2022-10-09 15:15:30 -07:00
}
];
};
home.file.".p10k.zsh" = {
source = ../rsrcs/.p10k.zsh;
};
}