
✅ Completed Tasks: - Task 6: Successfully tested deploy-rs on all machines (grey-area, reverse-proxy, congenital-optimist) - Task 7: Added deploy-rs status monitoring to lab tool 🔧 Infrastructure Improvements: - Added sma user to local machine for consistent SSH access - Created shared shell-aliases.nix module to eliminate conflicts - Enhanced lab status command with deploy-rs deployment info - Added generation tracking, build dates, and uptime monitoring 🚀 Deploy-rs Status: - All 4 machines successfully tested with both dry-run and actual deployments - Automatic rollback protection working correctly - Health checks and magic rollback functioning properly - Tailscale connectivity verified across all nodes 📊 New Status Features: - lab status --deploy-rs: Shows deployment details - lab status -v: Verbose SSH connection info - lab status -vd: Combined verbose + deploy-rs info - Real-time generation and system closure information The hybrid deployment approach is now fully operational with modern safety features while maintaining legacy compatibility.
63 lines
1.7 KiB
Nix
63 lines
1.7 KiB
Nix
# Shared Shell Aliases Module
|
|
# Common shell aliases for all users in the Home Lab infrastructure
|
|
{
|
|
config,
|
|
pkgs,
|
|
...
|
|
}: {
|
|
programs.zsh = {
|
|
# Common aliases for all users
|
|
shellAliases = {
|
|
# === File System Navigation & Management ===
|
|
"ll" = "eza -l --color=auto --group-directories-first";
|
|
"la" = "eza -la --color=auto --group-directories-first";
|
|
"tree" = "eza --tree";
|
|
|
|
# Safety first
|
|
"rm" = "rm -i";
|
|
"mv" = "mv -i";
|
|
"cp" = "cp -i";
|
|
|
|
# === System Management ===
|
|
"top" = "btop";
|
|
"disk-usage" = "df -h";
|
|
"mem-usage" = "free -h";
|
|
"processes" = "ps aux | head -20";
|
|
|
|
# === NixOS Management ===
|
|
"rebuild" = "sudo nixos-rebuild switch";
|
|
"rebuild-test" = "sudo nixos-rebuild test";
|
|
"rebuild-boot" = "sudo nixos-rebuild boot";
|
|
"collect" = "sudo nix-collect-garbage -d";
|
|
"optimise" = "sudo nix-store --optimise";
|
|
|
|
# === Git Shortcuts ===
|
|
"gs" = "git status";
|
|
"ga" = "git add";
|
|
"gc" = "git commit";
|
|
"gp" = "git push";
|
|
"gl" = "git log --oneline";
|
|
"gd" = "git diff";
|
|
|
|
# === Container Management ===
|
|
"pdm" = "podman";
|
|
"pdc" = "podman-compose";
|
|
"pods" = "podman ps -a";
|
|
"images" = "podman images";
|
|
"logs" = "podman logs";
|
|
|
|
# === Network Utilities ===
|
|
"ping" = "ping -c 5";
|
|
"myip" = "curl -s ifconfig.me";
|
|
"ports" = "ss -tulpn";
|
|
"connections" = "ss -tuln";
|
|
|
|
# === Media & Downloads ===
|
|
"youtube-dl" = "yt-dlp";
|
|
|
|
# === Security & Auditing ===
|
|
"audit-users" = "cat /etc/passwd | grep -E '/bin/(bash|zsh|fish)'";
|
|
"audit-sudo" = "cat /etc/sudoers.d/*";
|
|
};
|
|
};
|
|
}
|