dotfiles/homes/x86_64-linux/christopher@cobalt/global/terminal/shell/zsh/default.nix
Christopher Mühl 786af32daf
Publish my config
This is the result of ~100 commits to my NixOS config. Since I haven't
always used `agenix-rekey`, this is another initial commit so that none
of the secrets in my git history are leaked
2025-07-30 23:36:39 +02:00

51 lines
1 KiB
Nix

{
pkgs,
config,
...
}: {
imports = [
./antigen.nix
./prompt.nix
];
programs.zoxide.enableZshIntegration = true;
programs.zsh = {
enable = true;
dotDir = ".config/zsh";
oh-my-zsh.enable = true;
shellAliases = config.home.shellAliases;
# Add our own binaries to the PATH variable
initContent = ''
# Load Antigen as our package manager.
# The .antigenrc file is copied via the fixtures.nix
source ${pkgs.antigen.outPath}/share/antigen/antigen.zsh
antigen init ~/.antigenrc
export PATH="$HOME/code/hausgold/snippets/bin:$PATH"
export PATH="$HOME/.bun/bin:$HOME/.npm/bin:$PATH"
art()
{
if [ -f "./vendor/bin/sail" ];
then
./vendor/bin/sail artisan "$@"
else
php artisan "$@"
fi
}
sail()
{
if [ -f "./vendor/bin/sail" ];
then
./vendor/bin/sail "$@"
else
echo "Sail is not installed. Run 'composer require laravel/sail' to install it."
fi
}
'';
};
}