# millerapps/dotfiles architecture

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

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

## Overview

This is a personal macOS dotfiles and system-configuration repository, centered on applying a nix-darwin flake. The workflow starts with a user applying the configuration; nix-darwin coordinates system settings and Home Manager-managed home files, while Homebrew handles macOS apps and fonts. The repository also keeps standalone editor, shell, terminal, window-manager, keyboard, and file-manager settings. Relationships are limited to those described in the README; no source excerpts were available to verify further wiring between individual application configurations.

Main entry points: [`nix-darwin/flake.nix`](https://github.com/millerapps/dotfiles/blob/main/nix-darwin/flake.nix) (Darwin flake), [`nix-darwin/modules`](https://github.com/millerapps/dotfiles/tree/main/nix-darwin/modules) (System modules), [`nix-darwin/home`](https://github.com/millerapps/dotfiles/tree/main/nix-darwin/home) (Home Manager config), [`nix-darwin/modules/darwin/homebrew.nix`](https://github.com/millerapps/dotfiles/blob/main/nix-darwin/modules/darwin/homebrew.nix) (Homebrew module)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_system["System configuration"]
  node_flake["Darwin flake<br/>[flake.nix]"]
  node_system_modules["System modules"]
end

subgraph group_home["Home environment"]
  node_home_manager["Home Manager config"]
  node_home_profile["User profile config<br/>[default.nix]"]
  node_cli_packages["CLI packages"]
  node_shell_config["Shell config"]
end

subgraph group_apps["Application settings"]
  node_neovim["Neovim setup<br/>[init.lua]"]
  node_terminal_configs["Terminal configs<br/>[kitty.conf]"]
  node_window_config["Window config<br/>[aerospace.toml]"]
  node_keyboard_config["Keyboard config<br/>[karabiner.json]"]
  node_file_manager_config["File manager config<br/>[yazi.toml]"]
  node_multiplexer_config["Multiplexer config<br/>[config.kdl]"]
end

subgraph group_integrations["Package integrations"]
  node_package_manager["Nix package manager"]
  node_homebrew_module["Homebrew module<br/>[homebrew.nix]"]
  node_homebrew_bootstrap["Homebrew bootstrap"]
  node_homebrew["Homebrew"]
end

node_user(("User"))

node_user -->|"applies configuration"| node_flake
node_flake -->|"uses modules"| node_system_modules
node_flake -->|"hooks into"| node_home_manager
node_home_manager -->|"manages home files"| node_home_profile
node_user -->|"uses for packages"| node_package_manager
node_system_modules -->|"configures"| node_homebrew_module
node_homebrew_module -->|"manages installs"| node_homebrew
node_user -->|"runs when needed"| node_homebrew_bootstrap
node_homebrew_bootstrap -->|"installs"| node_homebrew

click node_flake "https://github.com/millerapps/dotfiles/blob/main/nix-darwin/flake.nix"
click node_system_modules "https://github.com/millerapps/dotfiles/tree/main/nix-darwin/modules"
click node_home_manager "https://github.com/millerapps/dotfiles/tree/main/nix-darwin/home"
click node_home_profile "https://github.com/millerapps/dotfiles/blob/main/nix-darwin/home/tylermiller/default.nix"
click node_cli_packages "https://github.com/millerapps/dotfiles/tree/main/nix-darwin/home/tylermiller/cli"
click node_shell_config "https://github.com/millerapps/dotfiles/tree/main/nix-darwin/home/tylermiller/shell"
click node_homebrew_module "https://github.com/millerapps/dotfiles/blob/main/nix-darwin/modules/darwin/homebrew.nix"
click node_homebrew_bootstrap "https://github.com/millerapps/dotfiles/blob/main/nix-darwin/pkgs/homebrew-bootstrap.nix"
click node_neovim "https://github.com/millerapps/dotfiles/blob/main/nvim/init.lua"
click node_terminal_configs "https://github.com/millerapps/dotfiles/blob/main/kitty/kitty.conf"
click node_window_config "https://github.com/millerapps/dotfiles/blob/main/aerospace/aerospace.toml"
click node_keyboard_config "https://github.com/millerapps/dotfiles/blob/main/karabiner/karabiner.json"
click node_file_manager_config "https://github.com/millerapps/dotfiles/blob/main/yazi/yazi.toml"
click node_multiplexer_config "https://github.com/millerapps/dotfiles/blob/main/zellij/config.kdl"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_flake,node_system_modules,node_user toneBlue
class node_home_manager,node_home_profile,node_cli_packages,node_shell_config toneAmber
class node_neovim,node_terminal_configs,node_window_config,node_keyboard_config,node_file_manager_config,node_multiplexer_config toneMint
class node_package_manager,node_homebrew_module,node_homebrew_bootstrap,node_homebrew toneRose
```

## Components

### System configuration

- [Darwin flake](https://github.com/millerapps/dotfiles/blob/main/nix-darwin/flake.nix): `nix-darwin/flake.nix`
- [System modules](https://github.com/millerapps/dotfiles/tree/main/nix-darwin/modules): `nix-darwin/modules`

### Home environment

- [Home Manager config](https://github.com/millerapps/dotfiles/tree/main/nix-darwin/home): `nix-darwin/home`
- [User profile config](https://github.com/millerapps/dotfiles/blob/main/nix-darwin/home/tylermiller/default.nix): `nix-darwin/home/tylermiller/default.nix`
- [CLI packages](https://github.com/millerapps/dotfiles/tree/main/nix-darwin/home/tylermiller/cli): `nix-darwin/home/tylermiller/cli`
- [Shell config](https://github.com/millerapps/dotfiles/tree/main/nix-darwin/home/tylermiller/shell): `nix-darwin/home/tylermiller/shell`

### Application settings

- [Neovim setup](https://github.com/millerapps/dotfiles/blob/main/nvim/init.lua): `nvim/init.lua`
- [Terminal configs](https://github.com/millerapps/dotfiles/blob/main/kitty/kitty.conf): `kitty/kitty.conf`
- [Window config](https://github.com/millerapps/dotfiles/blob/main/aerospace/aerospace.toml): `aerospace/aerospace.toml`
- [Keyboard config](https://github.com/millerapps/dotfiles/blob/main/karabiner/karabiner.json): `karabiner/karabiner.json`
- [File manager config](https://github.com/millerapps/dotfiles/blob/main/yazi/yazi.toml): `yazi/yazi.toml`
- [Multiplexer config](https://github.com/millerapps/dotfiles/blob/main/zellij/config.kdl): `zellij/config.kdl`

### Package integrations

- **Nix package manager**
- [Homebrew module](https://github.com/millerapps/dotfiles/blob/main/nix-darwin/modules/darwin/homebrew.nix): `nix-darwin/modules/darwin/homebrew.nix`
- [Homebrew bootstrap](https://github.com/millerapps/dotfiles/blob/main/nix-darwin/pkgs/homebrew-bootstrap.nix): `nix-darwin/pkgs/homebrew-bootstrap.nix`
- **Homebrew**

### Other components

- **User**

## Connections

- User → Darwin flake: applies configuration (evidence: `README.md`)
- Darwin flake → System modules: uses modules (evidence: `README.md`)
- Darwin flake → Home Manager config: hooks into (evidence: `README.md`)
- Home Manager config → User profile config: manages home files (evidence: `README.md`)
- User → Nix package manager: uses for packages (evidence: `README.md`)
- System modules → Homebrew module: configures (evidence: `README.md`)
- Homebrew module → Homebrew: manages installs (evidence: `README.md`)
- User → Homebrew bootstrap: runs when needed (evidence: `README.md`)
- Homebrew bootstrap → Homebrew: installs (evidence: `README.md`)
