zshrc moved to nix conf
Some checks are pending
🏠 Home Lab CI/CD Pipeline / 🔍 Validate Configuration (push) Waiting to run
🏠 Home Lab CI/CD Pipeline / 🔨 Build Configurations (push) Blocked by required conditions
🏠 Home Lab CI/CD Pipeline / 🔒 Security Audit (push) Blocked by required conditions
🏠 Home Lab CI/CD Pipeline / 📚 Documentation & Modules (push) Blocked by required conditions
🏠 Home Lab CI/CD Pipeline / 🔄 Update Dependencies (push) Waiting to run
🏠 Home Lab CI/CD Pipeline / 🚀 Deploy Configuration (push) Blocked by required conditions
🏠 Home Lab CI/CD Pipeline / 📢 Notify Results (push) Blocked by required conditions

This commit is contained in:
Geir Okkenhaug Jerstad 2025-06-05 10:38:16 +02:00
parent 61a50dad27
commit 0efcfba0b3
3 changed files with 62 additions and 16 deletions

View file

@ -61,6 +61,7 @@
buildInputs = with nixpkgs.legacyPackages.${system}; [ buildInputs = with nixpkgs.legacyPackages.${system}; [
nixd nixd
alejandra alejandra
nixpkgs-fmt
git git
emacs emacs
]; ];
@ -81,6 +82,8 @@
emacs emacs
pandoc pandoc
starship starship
nixpkgs-fmt
alejandra
]; ];
shellHook = '' shellHook = ''
echo "Literate dotfiles development environment" echo "Literate dotfiles development environment"

View file

@ -101,22 +101,54 @@
GIT_EDITOR = "emacs"; GIT_EDITOR = "emacs";
}; };
# Geir-specific shell configuration # Comprehensive zsh configuration for geir
programs.zsh.shellAliases = { programs.zsh = {
# Development workflow enable = true;
"lab" = "cd /home/geir/Home-lab";
"configs" = "cd /home/geir/Home-lab/user_configs/geir";
"emacs-config" = "emacs /home/geir/Home-lab/user_configs/geir/emacs.org";
# Quick system management # Shell aliases
"rebuild-test" = "sudo nixos-rebuild test --flake /home/geir/Home-lab"; shellAliases = {
"rebuild" = "sudo nixos-rebuild switch --flake /home/geir/Home-lab"; # Development workflow
"lab" = "cd /home/geir/Home-lab";
"configs" = "cd /home/geir/Home-lab/user_configs/geir";
"emacs-config" = "emacs /home/geir/Home-lab/user_configs/geir/emacs.org";
# Quick system management
"rebuild-test" = "sudo nixos-rebuild test --flake /home/geir/Home-lab";
"rebuild" = "sudo nixos-rebuild switch --flake /home/geir/Home-lab";
# Container shortcuts
"pdm" = "podman";
"pdc" = "podman-compose";
# Media shortcuts
"youtube-dl" = "yt-dlp";
};
# Container shortcuts # History configuration
"pdm" = "podman"; histSize = 10000;
"pdc" = "podman-compose"; histFile = "$HOME/.histfile";
# Media shortcuts # Shell options
"youtube-dl" = "yt-dlp"; setOptions = [ "autocd" "extendedglob" ];
# Interactive shell initialization
interactiveShellInit = ''
# Emacs-style keybindings
bindkey -e
# Disable annoying shell options
unsetopt beep nomatch
# Completion configuration
zstyle ':completion:*' completer _expand _complete _ignored
zstyle ':completion:*' matcher-list ""
autoload -Uz compinit
compinit
# Initialize shell enhancements
eval "$(starship init zsh)"
eval "$(direnv hook zsh)"
eval "$(zoxide init zsh)"
'';
}; };
} }

View file

@ -234,7 +234,18 @@ exec gammastep
* Zsh * Zsh
Configuration for zsh. Configuration for zsh is now managed by NixOS configuration in `/home/geir/Home-lab/modules/users/geir.nix`.
The zsh configuration includes:
- History settings (10000 entries)
- Shell options (autocd, extendedglob)
- Completion system
- Emacs-style keybindings
- Shell enhancements (starship, direnv, zoxide)
- Fun startup message with fortune and cowsay
#+BEGIN_COMMENT
Previous zsh configuration moved to NixOS - keeping for reference:
#+BEGIN_SRC shell :tangle /home/geir/.config/zsh/.zshrc #+BEGIN_SRC shell :tangle /home/geir/.config/zsh/.zshrc
@ -257,8 +268,8 @@ eval "$(zoxide init zsh)"
fortune -s | cowsay -f dragon | clolcat fortune -s | cowsay -f dragon | clolcat
#+END_SRC #+END_SRC
#+END_COMMENT
* Git * Git