feat: add zsh

This commit is contained in:
Laureηt 2022-12-20 16:17:00 +01:00
parent 400caafd12
commit 28ac9f2d1f
Signed by: Laurent
SSH key fingerprint: SHA256:kZEpW8cMJ54PDeCvOhzreNr4FSh6R13CMGH/POoO8DI

View file

@ -62,11 +62,13 @@
isNormalUser = true; isNormalUser = true;
initialPassword = "laurent"; initialPassword = "laurent";
extraGroups = [ "wheel" "video" ]; extraGroups = [ "wheel" "video" ];
shell = pkgs.zsh;
}; };
home-manager.users.laurent = { home-manager.users.laurent = {
home.stateVersion = "22.11"; home.stateVersion = "22.11";
home.packages = with pkgs; [ home.packages = with pkgs; [
exa exa
duf
bat bat
tmux tmux
htop htop
@ -108,6 +110,42 @@
}; };
}; };
programs.zsh = {
enable = true;
enableAutosuggestions = true;
enableSyntaxHighlighting = true;
enableCompletion = true;
sessionVariables = {
MANPAGER = "nvim +Man!";
VISUAL = "nvim";
EDITOR = "nvim";
};
shellAliases = {
ls = "exa";
l = "exa -l -h -g --icons --grid --git --time-style=long-iso";
ll = "exa -l -h -g --icons --grid --git --time-style=long-iso -a";
cat = "bat";
df = "duf";
};
history = {
size = 1000000000;
path = "$HOME/.zsh_history";
extended = true;
};
plugins = [
{
name = "zsh-nix-shell";
file = "nix-shell.plugin.zsh";
src = pkgs.fetchFromGitHub {
owner = "chisui";
repo = "zsh-nix-shell";
rev = "v0.5.0";
sha256 = "0za4aiwwrlawnia4f29msk822rj9bgcygw6a8a6iikiwzjjz0g91";
};
}
];
};
programs.git = { programs.git = {
enable = true; enable = true;
userName = "Laureηt"; userName = "Laureηt";