# jmarcon/dotfiles architecture

> Architecture diagram of the GitHub repository jmarcon/dotfiles, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-05-11). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/jmarcon/dotfiles
- Repository: https://github.com/jmarcon/dotfiles

## Overview

##### Project type and purpose
- This is a “dotfiles” / developer-environment bootstrap repository. Its goal is to centralize all personal shell/editor/terminal configuration (nvim, tmux, zsh, PowerShell), plus install scripts for Linux and Windows, and CI to validate the config.
- Key indicators:
- “Config/” folder containing per‐tool config.
- “Install/” folder for OS‐specific installation workflows.
- A GitHub Actions workflow (“.github/workflows/build.yml”) to test or lint the configs.

##### File structure
- Top‐level:
- .github/workflows/build.yml (CI pipeline)
- Config/ (all editor/shell configuration)
- Install/ (shell scripts & PowerShell scripts to install or symlink the configs)
- LICENSE, README.md, sonar­project.properties
- Under Config/ we see subfolders for each tool:
- nvim (.vimrc, init.lua, plugin lists)
- pwsh (PowerShell profile scripts)
- tmux (.tmux.conf)
- zsh (aliases, functions, init, path, env)
- Under Install/ two OS‐specific flows:
- Install/linux/*.zsh
- Install/windows/*.ps1
- CI pipeline likely runs syntax checks, linter, or dry‐run of install scripts.

##### Read README (empty here)
- No explicit architecture section; infer from file tree.

##### Elements
- Push → CI Pipeline
- CI Pipeline → (pass/fail)
- Clone/Install → Install Scripts → Config Modules → Home Directory
- Config Modules in another (e.g., green)
- Install Scripts in a third (e.g., orange)
- Developer Workstations in gray

- Layer 1 (top): GitHub Repo
- Layer 2: CI Pipeline checks
- Layer 5 (bottom): Developer Workstations (Linux, Windows)
- That Install Scripts consume Config Modules and produce the symlinks / copy of files into the workstation’s $HOME / profile directories.

## Diagram (Mermaid)

```mermaid
flowchart TB
    %% Repository & CI
    subgraph "Repository & CI"
        GitHubRepo["GitHub Repository"]:::repo
        CI["CI Pipeline"]:::ci
        Sonar["SonarQube Config"]:::qa
    end

    %% Configuration Modules
    subgraph "Config Modules"
        NVim["NVim"]:::config
        Pwsh["PowerShell (Pwsh)"]:::config
        Tmux["Tmux"]:::config
        Zsh["Zsh"]:::config
    end

    %% Installation Scripts
    subgraph "Install Scripts"
        LinuxInstall["Linux Scripts"]:::script
        WindowsInstall["Windows Scripts"]:::script
    end

    %% Developer Workstations
    subgraph "Developer Workstations"
        LinuxHost["Linux Host"]:::host
        WindowsHost["Windows Host"]:::host
    end

    %% Connections
    GitHubRepo -->|push| CI
    CI -->|"lint/test"| NVim
    CI -->|"lint/test"| Pwsh
    CI -->|"lint/test"| Tmux
    CI -->|"lint/test"| Zsh
    CI -->|"lint/test"| LinuxInstall
    CI -->|"lint/test"| WindowsInstall
    CI --> Sonar

    LinuxHost -->|"run install"| LinuxInstall
    WindowsHost -->|"run install"| WindowsInstall

    LinuxInstall -->|"reads"| NVim
    LinuxInstall -->|"reads"| Pwsh
    LinuxInstall -->|"reads"| Tmux
    LinuxInstall -->|"reads"| Zsh
    WindowsInstall -->|"reads"| NVim
    WindowsInstall -->|"reads"| Pwsh
    WindowsInstall -->|"reads"| Tmux
    WindowsInstall -->|"reads"| Zsh

    LinuxInstall -->|"deploy config"| LinuxHost
    WindowsInstall -->|"deploy config"| WindowsHost

    %% Click Events
    click GitHubRepo "https://github.com/jmarcon/dotfiles/tree/main//"
    click CI "https://github.com/jmarcon/dotfiles/blob/main/.github/workflows/build.yml"
    click NVim "https://github.com/jmarcon/dotfiles/tree/main/Config/nvim"
    click Pwsh "https://github.com/jmarcon/dotfiles/tree/main/Config/pwsh/profile"
    click Tmux "https://github.com/jmarcon/dotfiles/blob/main/Config/tmux/.tmux.conf"
    click Zsh "https://github.com/jmarcon/dotfiles/tree/main/Config/zsh"
    click LinuxInstall "https://github.com/jmarcon/dotfiles/tree/main/Install/linux"
    click WindowsInstall "https://github.com/jmarcon/dotfiles/tree/main/Install/windows"
    click Sonar "https://github.com/jmarcon/dotfiles/blob/main/sonar-project.properties"

    %% Styles
    classDef repo fill:#D6E9FF,stroke:#2E86C1,color:#1B4F72;
    classDef ci fill:#AED6F1,stroke:#1B4F72,color:#154360;
    classDef qa fill:#E8DAEF,stroke:#6C3483,color:#4A235A;
    classDef config fill:#D5F5E3,stroke:#27AE60,color:#145A32;
    classDef script fill:#FDEBD0,stroke:#D35400,color:#7E5109;
    classDef host fill:#F2F3F4,stroke:#566573,color:#1C2833;
```
