nicks-nix-config/modules/zsh.nix

42 lines
585 B
Nix
Raw Normal View History

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