# caylann/my-humble-flake architecture

> Architecture diagram of the GitHub repository caylann/my-humble-flake, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-29). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/caylann/my-humble-flake
- Repository: https://github.com/caylann/my-humble-flake

## Overview

This repository is a personal NixOS workstation configuration: it combines system and Home Manager settings with desktop and application dotfiles. A representative user workflow is starting the configured window manager, which handles X events, arranges windows, draws its interface, and can expose IPC commands and state. The tree also includes a ranger file-browser plugin that decorates entries with icons. Source excerpts show parts of dwm and the icon plugin; most Nix wiring and other application behavior is unsampled, so those relationships are left unasserted.

Main entry points: [`dotfiles/dwm/dwm.c`](https://github.com/caylann/my-humble-flake/blob/main/dotfiles/dwm/dwm.c) (Window management), [`dotfiles/dwm/ipc.c`](https://github.com/caylann/my-humble-flake/blob/main/dotfiles/dwm/ipc.c) (IPC protocol), [`dotfiles/dwm/config.h`](https://github.com/caylann/my-humble-flake/blob/main/dotfiles/dwm/config.h) (Window manager settings), [`dotfiles/ranger/rc.conf`](https://github.com/caylann/my-humble-flake/blob/main/dotfiles/ranger/rc.conf) (Ranger configuration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_nixos["NixOS system"]
  node_system_entry["System configuration<br/>[configuration.nix]"]
  node_system_modules["System modules"]
  node_hardware["Hardware settings"]
end

subgraph group_home["Home configuration"]
  node_home_entry["Home configuration<br/>[home.nix]"]
  node_home_modules["Home modules"]
  node_home_packages["User packages<br/>[home-packages.nix]"]
end

subgraph group_desktop["Desktop environment"]
  node_dwm_core["Window management<br/>[dwm.c]"]
  node_dwm_render["Drawing and text<br/>[drw.c]"]
  node_dwm_layouts["Layouts and gaps<br/>[vanitygaps.c]"]
  node_dwm_config["Window manager settings<br/>[config.h]"]
  node_dwm_ipc["IPC protocol<br/>[ipc.c]"]
  node_dwm_clients["IPC client records<br/>[IPCClient.c]"]
  node_dwm_json["IPC JSON encoding<br/>[yajl_dumps.c]"]
  node_terminal_config["Terminal settings<br/>[alacritty.toml]"]
  node_panel_config["Panel settings<br/>[config.ini]"]
  node_compositor_config["Compositor settings<br/>[picom.conf]"]
end

subgraph group_apps["User applications"]
  node_editor["Neovim configuration<br/>[init.lua]"]
  node_ranger["Ranger configuration<br/>[rc.conf]"]
  node_ranger_icons["File entry icons<br/>[devicons.py]"]
  node_launcher["Rofi configuration<br/>[config.rasi]"]
end

node_user(("Workstation user"))

node_user -.->|"configures"| node_system_entry
node_user -.->|"configures"| node_home_entry
node_dwm_core -->|"uses drawing API"| node_dwm_render
node_dwm_core -->|"handles IPC"| node_dwm_ipc
node_dwm_config -->|"references layouts"| node_dwm_layouts
node_dwm_ipc -->|"encodes state"| node_dwm_json
node_ranger -.->|"loads plugin"| node_ranger_icons

click node_system_entry "https://github.com/caylann/my-humble-flake/blob/main/configuration.nix"
click node_system_modules "https://github.com/caylann/my-humble-flake/tree/main/modules"
click node_hardware "https://github.com/caylann/my-humble-flake/blob/main/hardware-configuration.nix"
click node_home_entry "https://github.com/caylann/my-humble-flake/blob/main/hm/home.nix"
click node_home_modules "https://github.com/caylann/my-humble-flake/tree/main/hm/modules"
click node_home_packages "https://github.com/caylann/my-humble-flake/blob/main/hm/home-packages.nix"
click node_dwm_core "https://github.com/caylann/my-humble-flake/blob/main/dotfiles/dwm/dwm.c"
click node_dwm_render "https://github.com/caylann/my-humble-flake/blob/main/dotfiles/dwm/drw.c"
click node_dwm_layouts "https://github.com/caylann/my-humble-flake/blob/main/dotfiles/dwm/vanitygaps.c"
click node_dwm_config "https://github.com/caylann/my-humble-flake/blob/main/dotfiles/dwm/config.h"
click node_dwm_ipc "https://github.com/caylann/my-humble-flake/blob/main/dotfiles/dwm/ipc.c"
click node_dwm_clients "https://github.com/caylann/my-humble-flake/blob/main/dotfiles/dwm/IPCClient.c"
click node_dwm_json "https://github.com/caylann/my-humble-flake/blob/main/dotfiles/dwm/yajl_dumps.c"
click node_terminal_config "https://github.com/caylann/my-humble-flake/blob/main/dotfiles/alacritty/alacritty.toml"
click node_panel_config "https://github.com/caylann/my-humble-flake/blob/main/dotfiles/polybar/config.ini"
click node_compositor_config "https://github.com/caylann/my-humble-flake/blob/main/dotfiles/picom/picom.conf"
click node_editor "https://github.com/caylann/my-humble-flake/blob/main/dotfiles/nvim/init.lua"
click node_ranger "https://github.com/caylann/my-humble-flake/blob/main/dotfiles/ranger/rc.conf"
click node_ranger_icons "https://github.com/caylann/my-humble-flake/blob/main/dotfiles/ranger/plugins/devicons.py"
click node_launcher "https://github.com/caylann/my-humble-flake/blob/main/dotfiles/rofi/config.rasi"

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_system_entry,node_system_modules,node_hardware,node_user toneBlue
class node_home_entry,node_home_modules,node_home_packages toneAmber
class node_dwm_core,node_dwm_render,node_dwm_layouts,node_dwm_config,node_dwm_ipc,node_dwm_clients,node_dwm_json,node_terminal_config,node_panel_config,node_compositor_config toneMint
class node_editor,node_ranger,node_ranger_icons,node_launcher toneRose
```

## Components

### NixOS system

- [System configuration](https://github.com/caylann/my-humble-flake/blob/main/configuration.nix): `configuration.nix`
- [System modules](https://github.com/caylann/my-humble-flake/tree/main/modules): `modules`
- [Hardware settings](https://github.com/caylann/my-humble-flake/blob/main/hardware-configuration.nix): `hardware-configuration.nix`

### Home configuration

- [Home configuration](https://github.com/caylann/my-humble-flake/blob/main/hm/home.nix): `hm/home.nix`
- [Home modules](https://github.com/caylann/my-humble-flake/tree/main/hm/modules): `hm/modules`
- [User packages](https://github.com/caylann/my-humble-flake/blob/main/hm/home-packages.nix): `hm/home-packages.nix`

### Desktop environment

- [Window management](https://github.com/caylann/my-humble-flake/blob/main/dotfiles/dwm/dwm.c): `dotfiles/dwm/dwm.c`
- [Drawing and text](https://github.com/caylann/my-humble-flake/blob/main/dotfiles/dwm/drw.c): `dotfiles/dwm/drw.c`
- [Layouts and gaps](https://github.com/caylann/my-humble-flake/blob/main/dotfiles/dwm/vanitygaps.c): `dotfiles/dwm/vanitygaps.c`
- [Window manager settings](https://github.com/caylann/my-humble-flake/blob/main/dotfiles/dwm/config.h): `dotfiles/dwm/config.h`
- [IPC protocol](https://github.com/caylann/my-humble-flake/blob/main/dotfiles/dwm/ipc.c): `dotfiles/dwm/ipc.c`
- [IPC client records](https://github.com/caylann/my-humble-flake/blob/main/dotfiles/dwm/IPCClient.c): `dotfiles/dwm/IPCClient.c`
- [IPC JSON encoding](https://github.com/caylann/my-humble-flake/blob/main/dotfiles/dwm/yajl_dumps.c): `dotfiles/dwm/yajl_dumps.c`
- [Terminal settings](https://github.com/caylann/my-humble-flake/blob/main/dotfiles/alacritty/alacritty.toml): `dotfiles/alacritty/alacritty.toml`
- [Panel settings](https://github.com/caylann/my-humble-flake/blob/main/dotfiles/polybar/config.ini): `dotfiles/polybar/config.ini`
- [Compositor settings](https://github.com/caylann/my-humble-flake/blob/main/dotfiles/picom/picom.conf): `dotfiles/picom/picom.conf`

### User applications

- [Neovim configuration](https://github.com/caylann/my-humble-flake/blob/main/dotfiles/nvim/init.lua): `dotfiles/nvim/init.lua`
- [Ranger configuration](https://github.com/caylann/my-humble-flake/blob/main/dotfiles/ranger/rc.conf): `dotfiles/ranger/rc.conf`
- [File entry icons](https://github.com/caylann/my-humble-flake/blob/main/dotfiles/ranger/plugins/devicons.py): `dotfiles/ranger/plugins/devicons.py`
- [Rofi configuration](https://github.com/caylann/my-humble-flake/blob/main/dotfiles/rofi/config.rasi): `dotfiles/rofi/config.rasi`

### Other components

- **Workstation user**

## Connections

- Workstation user → System configuration: configures
- Workstation user → Home configuration: configures
- Window management → Drawing and text: uses drawing API (evidence: `dotfiles/dwm/dwm.c`)
- Window management → IPC protocol: handles IPC (evidence: `dotfiles/dwm/dwm.c`)
- Window manager settings → Layouts and gaps: references layouts (evidence: `dotfiles/dwm/config.h`)
- IPC protocol → IPC JSON encoding: encodes state (evidence: `dotfiles/dwm/ipc.c`)
- Ranger configuration → File entry icons: loads plugin
