# chromamaster/dotfiles architecture

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

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

## Overview

##### Main Components Identification
The system should be organized into the following primary components:

a. Development Environment Configurations
- Shell Environment (zsh)
- Terminal Emulators (kitty, zellij)
- Version Control (git)
- Text Editors/IDEs (nvim, helix, intellij, zed)
- System Configuration (nix)

b. Package Management & System Configuration
- Nix Configuration
- NixOS configurations
- Home Manager configurations
- Development Templates

##### Specific Implementation Details

a. Configuration Management:
- How Nix manages both system-level (NixOS) and user-level (Home Manager) configurations
- Separation between personal and work configurations

b. Tool Integration:
- How different tools interact (e.g., tmux with vim-tmux-navigator)

c. Development Templates:
- How templates provide standardized development environments
- Language-specific configurations

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph Core
        NIX[Nix System]:::core
        NIXOS[NixOS Configuration]:::core
        HOME[Home Manager]:::core
        
        NIX --> NIXOS
        NIX --> HOME
    end
    
    subgraph "Shell Environment"
        ZSH[ZSH]:::shell
        STAR[Starship]:::shell
        PROF[Profile]:::shell
    end
    
    subgraph "Terminal Emulators"
        KITTY[Kitty]:::terminal
        ZELLIJ[Zellij]:::terminal
        TMUX[TMux]:::terminal
    end
    
    subgraph "Version Control"
        GIT[Git]:::vcs
        GTEMP[Git Templates]:::vcs
        GMSG[Git Message]:::vcs
    end
    
    subgraph "Editors"
        NVIM[Neovim]:::editor
        HELIX[Helix]:::editor
        IDEA[IntelliJ]:::editor
        ZED[Zed]:::editor
    end
    
    subgraph "Host Configs"
        PERS[Personal]:::host
        WORK[Work]:::host
    end
    
    subgraph "Templates"
        GO[Go Template]:::template
        OCAML[OCaml Template]:::template
        PY[Python Template]:::template
    end
    
    subgraph "Themes"
        KTHEME[Kitty Themes]:::theme
        TTHEME[TMux Themes]:::theme
    end
    
    HOME --> ZSH
    HOME --> KITTY
    HOME --> GIT
    HOME --> NVIM
    HOME --> HELIX
    HOME --> IDEA
    HOME --> ZED
    HOME --> ZELLIJ
    HOME --> TMUX
    
    NIXOS --> PERS
    NIXOS --> WORK
    
    NIX --> GO
    NIX --> OCAML
    NIX --> PY
    
    ZSH --> STAR
    ZSH --> PROF
    
    GIT --> GTEMP
    GIT --> GMSG
    
    KITTY --> KTHEME
    TMUX --> TTHEME
    
    %% Click Events
    click NIXOS "https://github.com/ChromaMaster/dotfiles/blob/main/nix/nixos/configuration.nix"
    click HOME "https://github.com/ChromaMaster/dotfiles/blob/main/nix/home/default.nix"
    click GO "https://github.com/ChromaMaster/dotfiles/tree/main/nix/templates/go/"
    click OCAML "https://github.com/ChromaMaster/dotfiles/tree/main/nix/templates/ocaml/"
    click PY "https://github.com/ChromaMaster/dotfiles/tree/main/nix/templates/python/"
    click ZSH "https://github.com/ChromaMaster/dotfiles/blob/main/zsh/.zshrc"
    click PROF "https://github.com/ChromaMaster/dotfiles/blob/main/zsh/.profile"
    click STAR "https://github.com/ChromaMaster/dotfiles/blob/main/starship/starship.toml"
    click KITTY "https://github.com/ChromaMaster/dotfiles/blob/main/kitty/kitty.conf"
    click ZELLIJ "https://github.com/ChromaMaster/dotfiles/blob/main/zellij/config.kdl"
    click GIT "https://github.com/ChromaMaster/dotfiles/blob/main/git/.gitconfig"
    click GTEMP "https://github.com/ChromaMaster/dotfiles/tree/main/git/.git-template/"
    click GMSG "https://github.com/ChromaMaster/dotfiles/blob/main/git/.gitmessage"
    click NVIM "https://github.com/ChromaMaster/dotfiles/blob/main/nvim/init.lua"
    click HELIX "https://github.com/ChromaMaster/dotfiles/blob/main/helix/config.toml"
    click IDEA "https://github.com/ChromaMaster/dotfiles/blob/main/intellij/.ideavimrc"
    click ZED "https://github.com/ChromaMaster/dotfiles/blob/main/zed/settings.json"
    click PERS "https://github.com/ChromaMaster/dotfiles/blob/main/nix/nixos/hosts/personal/configuration.nix"
    click WORK "https://github.com/ChromaMaster/dotfiles/blob/main/nix/nixos/hosts/work/configuration.nix"
    click KTHEME "https://github.com/ChromaMaster/dotfiles/tree/main/kitty/themes/"
    click TTHEME "https://github.com/ChromaMaster/dotfiles/blob/main/tmux/theme_*.conf"
    
    %% Styles
    classDef core fill:#a0d8ef
    classDef shell fill:#ffd700
    classDef terminal fill:#ff9966
    classDef vcs fill:#98fb98
    classDef editor fill:#dda0dd
    classDef host fill:#b0c4de
    classDef template fill:#d3d3d3
    classDef theme fill:#f0e68c
```
