# gvllvgher/arch-install-scripts architecture

> Architecture diagram of the GitHub repository gvllvgher/arch-install-scripts, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2024-12-26). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/gvllvgher/arch-install-scripts
- Repository: https://github.com/gvllvgher/arch-install-scripts

## Overview

##### Main Components

a. Entry Point Layer:
- Input parameters (-d, -u, -w) flowing into this component

b. Script Execution Layers:
1. "Outside Chroot Environment"
2. "Inside Chroot Environment"

c. Configuration Groups:
- Apps Installation Group
- System Configuration Group
- Window Manager Setup
- Boot Configuration

##### Component Relationships

**install.sh (Entry Point)**

- Pre-chroot Operations
- Disk Partitioning (/dev/sdX)

- inside-chroot.sh

- install-apps.sh
- install-discord.sh
- install-obs.sh
- install-yay.sh
- install-zsh.sh

- install-fonts.sh
- install-qtile.sh
- install-vmtools.sh

- Configuration
- configure-acpid.sh
- configure-displays.sh

##### Important Details

- A "Parameters" section showing:
- INSTALL_DISK
- LOCAL_USER
- WINDOW_MANAGER
- SWAP_GB
- Directory paths (TEMP_DIR, INSIDE_TEMP_DIR)

- Environment boundaries:
- Chroot boundary
- Where Git operations occur (GIT_BASE_URL and REPO)

## Diagram (Mermaid)

```mermaid
%%{init: {'theme': 'base', 'themeVariables': { 'fontSize': '16px'}}}%%
flowchart TB
    subgraph Legend
        A[Script]:::script --- B[Configuration]:::config
        B --- C[Installation]:::install
        C --- D[System Component]:::system
        D --- E[Optional Component]:::optional
    end

    subgraph Parameters
        INSTALL_DISK[/"INSTALL_DISK (-d)"/]:::param
        LOCAL_USER[/"LOCAL_USER (-u)"/]:::param
        WINDOW_MGR[/"WINDOW_MANAGER (-w)"/]:::param
    end

    subgraph "Outside Chroot Environment"
        ENTRY[install.sh]:::script
        DISK[(Disk Partitioning)]:::system
    end

    subgraph "Inside Chroot Environment"
        CHROOT[inside-chroot.sh]:::script

        subgraph "Apps Installation"
            APPS[install-apps.sh]:::install
            DISCORD[install-discord.sh]:::install
            OBS[install-obs.sh]:::install
            YAY[install-yay.sh]:::install
            ZSH[install-zsh.sh]:::install
        end

        subgraph "System Configuration"
            ACPID[configure-acpid.sh]:::config
            DISPLAYS[configure-displays.sh]:::config
            FONTS[install-fonts.sh]:::install
            QTILE[install-qtile.sh]:::install
            VMTOOLS[install-vmtools.sh]:::optional
            BOOT[install-bootloader.sh]:::install
        end
    end

    INSTALL_DISK & LOCAL_USER & WINDOW_MGR --> ENTRY
    ENTRY --> DISK
    DISK --> CHROOT
    CHROOT --> APPS
    APPS --> DISCORD & OBS & YAY & ZSH
    CHROOT --> ACPID & DISPLAYS
    CHROOT --> FONTS
    CHROOT --> QTILE
    CHROOT --> VMTOOLS
    CHROOT --> BOOT

    %% Click events for component mapping
    click ENTRY "https://github.com/gvllvgher/arch-install-scripts/blob/main/install.sh"
    click CHROOT "https://github.com/gvllvgher/arch-install-scripts/blob/main/scripts/inside-chroot.sh"
    click APPS "https://github.com/gvllvgher/arch-install-scripts/blob/main/scripts/install-apps.sh"
    click DISCORD "https://github.com/gvllvgher/arch-install-scripts/blob/main/apps/install-discord.sh"
    click OBS "https://github.com/gvllvgher/arch-install-scripts/blob/main/apps/install-obs.sh"
    click YAY "https://github.com/gvllvgher/arch-install-scripts/blob/main/apps/install-yay.sh"
    click ZSH "https://github.com/gvllvgher/arch-install-scripts/blob/main/apps/install-zsh.sh"
    click ACPID "https://github.com/gvllvgher/arch-install-scripts/blob/main/config/configure-acpid.sh"
    click DISPLAYS "https://github.com/gvllvgher/arch-install-scripts/blob/main/config/configure-displays.sh"
    click QTILE "https://github.com/gvllvgher/arch-install-scripts/blob/main/scripts/install-qtile.sh"
    click BOOT "https://github.com/gvllvgher/arch-install-scripts/blob/main/scripts/install-bootloader.sh"
    click FONTS "https://github.com/gvllvgher/arch-install-scripts/blob/main/scripts/install-fonts.sh"
    click VMTOOLS "https://github.com/gvllvgher/arch-install-scripts/blob/main/scripts/install-vmtools.sh"

    classDef script fill:#2196F3,stroke:#1565C0,color:white
    classDef config fill:#FF9800,stroke:#F57C00,color:white
    classDef install fill:#4CAF50,stroke:#388E3C,color:white
    classDef system fill:#9E9E9E,stroke:#616161,color:white
    classDef optional fill:#90A4AE,stroke:#546E7A,color:white,stroke-dasharray: 5 5
    classDef param fill:#E91E63,stroke:#C2185B,color:white
```
