40 lines
974 B
Nix
40 lines
974 B
Nix
{ pkgs, config, ... }:
|
|
|
|
{
|
|
age.secrets.env = {
|
|
file = ../../secrets/env.age;
|
|
owner = "glen";
|
|
};
|
|
|
|
programs = {
|
|
zsh = {
|
|
enable = true;
|
|
autosuggestions.enable = true; # Auto suggest options and highlights syntax, searches in history for options
|
|
syntaxHighlighting.enable = true;
|
|
enableCompletion = true;
|
|
histSize = 100000;
|
|
|
|
ohMyZsh = {
|
|
# Extra plugins for zsh
|
|
enable = true;
|
|
plugins = [ "git" ];
|
|
};
|
|
|
|
shellInit = '' # Zsh theme
|
|
# Spaceship
|
|
source ${pkgs.spaceship-prompt}/share/zsh/site-functions/prompt_spaceship_setup
|
|
autoload -U promptinit; promptinit
|
|
# Hook direnv
|
|
#emulate zsh -c "$(direnv hook zsh)"
|
|
# Swag
|
|
#${pkgs.nitch}/bin/nitch
|
|
|
|
#eval "$(direnv hook zsh)"
|
|
eval "$(atuin init zsh)"
|
|
clear
|
|
pfetch
|
|
source ${config.age.secrets.env.path}
|
|
'';
|
|
};
|
|
};
|
|
}
|