How mellbourn/dotfiles works
Main Components
a. Configuration Management Layer
• YADM Core (central component)
• Git-crypt (for encryption)
• Bootstrap Scripts
• Platform-specific Configurations
b. Configuration Categories (group these as subsystems)
• Shell Configurations (.zshrc, .bashrc, .profile)
• Development Tools (.gitconfig, .vimrc, VS Code)
• Security (.gnupg, .ssh)
• Package Managers (Homebrew, apt)
• Application Configs (.config directory contents)
┌─ Platform Layer ─────────────────────┐
• MacOS │ WSL │ Ubuntu/Debian │
• ┘
• ↑
┌─ Configuration Management Layer ──────┐
• ┌─ YADM Core ─┐ │
• Git Backend │ │
• Git-crypt │ │
• ┘ │
• ↕ │
• ┌─ Bootstrap ─┐ ┌─ Config ─┐ │
• Main │ │ Shell │ │
• Customer │ ←→ │ Dev │ │
• Sudo │ │ Security │ │
• ┘ └─────────┘ │
• ┘
• ↓
┌─ File System Layer ──────────────────┐
• Dotfiles │ Configs │ Scripts │
• ┘
Important Relationships
• Platform-specific configuration flow with conditional paths
• Encrypted files with a lock symbol (git-crypt managed files)
• Bootstrap script execution flow
Additional Elements
• External dependencies (Homebrew, apt)
• Template/generated files
Implementation Details
• Use standardized UML or C4 model notation
• Keep component sizes proportional to their complexity
• Brief annotations for complex interactions
• Cross-platform compatibility
• Security-first approach (git-crypt, SSH, GPG)
• Automated setup (bootstrap scripts)
• Modular configuration management
Remember to maintain a balance between detail and clarity, focusing on the architectural decisions that make this dotfiles management system effective across different platforms while maintaining security and automation capabilities.