# Setup SSH server sudo systemctl enable sshd sudo ufw allow 22/tcp # Setup Docker sudo pacman -Sy --needed docker docker-compose docker-buildx sudo systemctl enable --now docker.service if ! getent group docker > /dev/null 2>&1; then sudo groupadd docker fi if ! id -nG "$USER" | grep -qw "docker"; then sudo usermod -aG docker "$USER" fi newgrp docker docker create network homelogic # Setup ZSH echo '# Custom aliases' >> ~/.zshrc echo 'alias la="ls -a"' >> ~/.zshrc echo 'alias lah="ls -lah"' >> ~/.zshrc echo "alias treesize='sudo du -sh \\* | sort -rh'" >> ~/.zshrc echo "alias up='docker compose up -d'" >> ~/.zshrc echo "alias down='docker compose down'" >> ~/.zshrc echo "alias pull='docker compose pull && up'" >> ~/.zshrc echo "alias mkdir='createDir() { mkdir \\$1 && cd \"\\$\\_\" };createDir'" >> ~/.zshrc echo "alias token='openssl rand -hex 32'" >> ~/.zshrc echo "alias shortToken='openssl rand -hex 16'" >> ~/.zshrc echo "alias size='sudo du -sxh .'" >> ~/.zshrc echo "alias ,,='..'" >> ~/.zshrc echo "alias restart='down && up'" >> ~/.zshrc # Setup Tailscale if ! command -v tailscale > /dev/null 2>&1; then curl -fsSL https://tailscale.com/install.sh | sh sudo tailscale up fi