Use nixpkgs powerlevel10k

This commit is contained in:
Spotlight 2023-05-20 14:26:28 -05:00
parent 7669f46282
commit 32c6f4a42f
Signed by: spotlight
GPG key ID: 874AA355B3209BDC

View file

@ -88,16 +88,6 @@ in {
enableCompletion = true; enableCompletion = true;
enableSyntaxHighlighting = true; enableSyntaxHighlighting = true;
plugins = with pkgs; [ plugins = with pkgs; [
{
name = "p10k";
src = fetchFromGitHub {
owner = "romkatv";
repo = "powerlevel10k";
rev = "v1.18.0";
sha256 = "IiMYGefF+p4bUueO/9/mJ4mHMyJYiq+67GgNdGJ6Eew=";
};
file = "powerlevel10k.zsh-theme";
}
{ {
name = "expand-multiple-dots"; name = "expand-multiple-dots";
src = "${config.home.homeDirectory}/.dotfiles/zsh/expand-multiple-dots"; src = "${config.home.homeDirectory}/.dotfiles/zsh/expand-multiple-dots";
@ -109,7 +99,11 @@ in {
file = "shell_integration/zsh"; file = "shell_integration/zsh";
} }
]; ];
# We use powerlevel10k as our ZSH theme.
# By using the derivation in nixpkgs, we also get gitstatusd.
# The .p10k.zsh config is beneath. # The .p10k.zsh config is beneath.
initExtraBeforeCompInit = "source ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/powerlevel10k.zsh-theme";
}; };
programs.vim = { programs.vim = {