2022-09-18 19:42:30 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
home.packages = with pkgs; [
|
|
|
|
# TODO: Should zsh be added here if already part of system configuration?
|
|
|
|
#zsh
|
|
|
|
ripgrep
|
|
|
|
bat
|
|
|
|
htop
|
|
|
|
ranger
|
|
|
|
lsd
|
2022-09-19 04:07:03 +00:00
|
|
|
jq
|
2022-09-18 19:42:30 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
programs.direnv = {
|
|
|
|
enable = true;
|
|
|
|
enableZshIntegration = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
programs.zsh = {
|
|
|
|
enable = true;
|
|
|
|
enableAutosuggestions = true;
|
|
|
|
enableCompletion = true;
|
|
|
|
envExtra = ''
|
|
|
|
export PATH=~/.local/bin:$PATH
|
|
|
|
export EDITOR=vim
|
|
|
|
'';
|
|
|
|
initExtra = ''
|
|
|
|
base16_darktooth
|
|
|
|
bindkey -v
|
2022-09-18 22:16:16 +00:00
|
|
|
bindkey '^A' beginning-of-line
|
|
|
|
bindkey '^E' end-of-line
|
2022-09-18 19:42:30 +00:00
|
|
|
bindkey '^R' history-incremental-search-backward
|
|
|
|
alias view="vim -R $1"
|
|
|
|
alias ls=lsd
|
2022-10-02 16:54:45 +00:00
|
|
|
alias l='ls -la'
|
2022-09-18 19:42:30 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
plugins = with pkgs; [
|
|
|
|
{
|
|
|
|
name = "zsh-syntax-highlighting";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zsh-users";
|
|
|
|
repo = "zsh-syntax-highlighting";
|
|
|
|
rev = "0.6.0";
|
|
|
|
sha256 = "0zmq66dzasmr5pwribyh4kbkk23jxbpdw4rjxx0i7dx8jjp2lzl4";
|
|
|
|
};
|
|
|
|
file = "zsh-syntax-highlighting.zsh";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name = "powerlevel10k";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "romkatv";
|
|
|
|
repo = "powerlevel10k";
|
|
|
|
rev = "v1.16.1";
|
|
|
|
sha256 = "0fkfh8j7rd8mkpgz6nsx4v7665d375266shl1aasdad8blgqmf0c";
|
|
|
|
};
|
|
|
|
file = "powerlevel10k.zsh-theme";
|
|
|
|
}
|
2022-09-18 22:10:36 +00:00
|
|
|
{
|
|
|
|
name = "powerlevel10k-config";
|
|
|
|
src = lib.cleanSource ./p10k;
|
|
|
|
file = "p10k.zsh";
|
|
|
|
}
|
2022-09-18 19:42:30 +00:00
|
|
|
{
|
|
|
|
name = "base16-shell";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "chriskempson";
|
|
|
|
repo = "base16-shell";
|
|
|
|
rev = "ce8e1e540367ea83cc3e01eec7b2a11783b3f9e1";
|
|
|
|
sha256 = "1yj36k64zz65lxh28bb5rb5skwlinixxz6qwkwaf845ajvm45j1q";
|
|
|
|
};
|
|
|
|
file = "base16-shell.plugin.zsh";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|