config-perso/modules/zsh.nix

62 lines
1.4 KiB
Nix
Raw Normal View History

2024-02-26 15:22:46 +01:00
{
2024-05-14 19:21:19 +02:00
config,
pkgs,
lib,
...
}:
{
programs = {
zsh = {
2024-02-26 15:22:46 +01:00
enable = true;
2024-05-14 19:21:19 +02:00
oh-my-zsh = {
enable = true;
plugins = [ "git" ];
};
plugins = [
{
name = "zsh-nix-shell";
file = "nix-shell.plugin.zsh";
src = pkgs.fetchFromGitHub {
owner = "chisui";
repo = "zsh-nix-shell";
rev = "v0.8.0";
sha256 = "1lzrn0n4fxfcgg65v0qhnj7wnybybqzs4adz7xsrkgmcsr0ii8b7";
};
}
{
name = "zsh-autosuggestion";
file = "zsh-autosuggestions.zsh";
src = pkgs.fetchFromGitHub {
owner = "zsh-users";
repo = "zsh-autosuggestions";
rev = "v0.7.0";
sha256 = "1g3pij5qn2j7v7jjac2a63lxd97mcsgw6xq6k5p7835q9fjiid98";
};
}
{
name = "zsh-syntax-highlighting";
file = "zsh-syntax-highlighting.zsh";
src = pkgs.fetchFromGitHub {
owner = "zsh-users";
repo = "zsh-syntax-highlighting";
rev = "0.8.0";
sha256 = "1yl8zdip1z9inp280sfa5byjbf2vqh2iazsycar987khjsi5d5w8";
};
}
];
2024-02-26 15:22:46 +01:00
};
2024-05-14 19:21:19 +02:00
starship = {
enable = true;
enableZshIntegration = true;
settings.battery.disabled = true;
};
2024-05-24 13:32:41 +02:00
direnv = {
enable = true;
enableZshIntegration = true;
nix-direnv.enable = true;
};
2024-02-26 15:22:46 +01:00
};
}