nixos/programs/zsh.nix

32 lines
712 B
Nix
Raw Normal View History

2024-06-16 10:10:36 +00:00
{ config, lib, pkgs, ... }:
{
programs.zsh = {
enable = true;
enableCompletion = true;
autosuggestion.enable = true;
enableVteIntegration = true;
syntaxHighlighting.enable = true;
2024-06-19 11:28:03 +00:00
history.path = "${config.xdg.dataHome}/zsh/history";
2024-06-16 10:10:36 +00:00
initExtra = ''
2024-06-19 11:28:03 +00:00
alias hsw='home-manager switch'
2024-06-16 10:10:36 +00:00
'';
oh-my-zsh = {
enable = true;
2024-07-26 17:39:59 +00:00
plugins = [ "git" "direnv" ];
};
2024-06-16 10:10:36 +00:00
plugins = [
{
name = "powerlevel10k";
src = pkgs.zsh-powerlevel10k;
file = "share/zsh-powerlevel10k/powerlevel10k.zsh-theme";
2024-06-16 10:10:36 +00:00
}
{
name = "powerlevel10k-config";
src = lib.cleanSource ./p10k-config;
file = "p10k.zsh";
2024-06-16 10:10:36 +00:00
}
];
};
}