51 lines
1023 B
Nix
51 lines
1023 B
Nix
{ pkgs, ... }:
|
|
|
|
{
|
|
programs.zsh = {
|
|
enable = true;
|
|
enableCompletion = true;
|
|
autosuggestion.enable = true;
|
|
syntaxHighlighting.enable = true;
|
|
|
|
shellAliases = {
|
|
ll = "ls -alF";
|
|
la = "ls -A";
|
|
l = "ls -CF";
|
|
tp = "tree -I '__init__*' -I '__pycache__'";
|
|
clear = "/run/current-system/sw/bin/clear";
|
|
zide = "zellij --layout ide";
|
|
};
|
|
|
|
sessionVariables = {
|
|
LANG = "en_US.UTF-8";
|
|
RUST_BACKTRACE = "1";
|
|
TYPST_FONT_PATHS = "$HOME/.fonts";
|
|
};
|
|
|
|
oh-my-zsh = {
|
|
enable = true;
|
|
theme = "";
|
|
plugins = [
|
|
"git"
|
|
"gh"
|
|
"git-auto-fetch"
|
|
"rust"
|
|
"ssh"
|
|
];
|
|
};
|
|
|
|
initContent = ''
|
|
# Conditional Editor logic
|
|
if [[ -n $SSH_CONNECTION ]]; then
|
|
export EDITOR='nano'
|
|
else
|
|
export EDITOR='hx'
|
|
export GIT_EDITOR='hx'
|
|
fi
|
|
'';
|
|
};
|
|
home.sessionVariables = {
|
|
TERMINFO_DIRS = "${pkgs.ghostty}/share/terminfo:${pkgs.ncurses}/share/terminfo";
|
|
};
|
|
}
|