nixos-config/home-manager/stvnliu/shells/zsh.nix
Zhongheng Liu 4fe4ebefc8 feat: decent shell configuration with starship and zsh
direnv and devenv integrated support
experimental nginx test configuration
sway and foot configuration updated
created initial sddm configuration for login manager
2024-08-01 18:05:58 +08:00

36 lines
768 B
Nix

{
pkgs,
lib,
config,
...
}: let
cfg = config.shell.zsh;
in
with lib; {
options.myShells.zsh = {
enable = mkEnableOption "Enables zsh and components.";
};
config = {
programs.zsh = {
enable = true;
syntaxHighlighting.enable = true;
shellAliases = import ./aliases {inherit pkgs;};
dirHashes = {
docs = "$HOME/Documents";
dl = "$HOME/Downloads";
dev = "$HOME/devel";
screen = "$HOME/Pictures/Screenshots";
};
oh-my-zsh = {
enable = true;
plugins = [
"git"
"rsync"
"zoxide"
];
theme = "agnoster";
};
};
home.packages = with pkgs; [zoxide];
};
}