33 lines
831 B
Nix
33 lines
831 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
programs.zsh = {
|
|
enable = true;
|
|
enableCompletion = true;
|
|
autosuggestion.enable = true;
|
|
enableVteIntegration = true;
|
|
syntaxHighlighting.enable = true;
|
|
history.path = "${config.xdg.dataHome}/zsh/history";
|
|
initExtra = ''
|
|
alias hsw='home-manager switch'
|
|
alias pwConnect='pw-link Mopidy:output_FL Snapcast:playback_FL && pw-link Mopidy:output_FR Snapcast:playback_FR'
|
|
'';
|
|
oh-my-zsh = {
|
|
enable = true;
|
|
plugins = [ "git" "direnv" ];
|
|
};
|
|
plugins = [
|
|
{
|
|
name = "powerlevel10k";
|
|
src = pkgs.zsh-powerlevel10k;
|
|
file = "share/zsh-powerlevel10k/powerlevel10k.zsh-theme";
|
|
}
|
|
{
|
|
name = "powerlevel10k-config";
|
|
src = lib.cleanSource ./p10k-config;
|
|
file = "p10k.zsh";
|
|
}
|
|
];
|
|
};
|
|
}
|