# turbcool/nixos architecture

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

- Interactive diagram: https://gitdiagram.com/turbcool/nixos
- Repository: https://github.com/turbcool/nixos

## Overview

This repository is a personal NixOS configuration for Hydenix and Nixarchy desktop hosts plus a WSL host. The main workflow is to edit a host’s identity and feature toggles, then apply that host configuration with the documented NixOS rebuild command. Shared modules and packages provide reusable configuration, while desktop-specific modules cover system and Home Manager features. The README documents these locations and feature mappings; source excerpts were unavailable, so links between implementation modules are limited to those documented relationships.

Main entry points: [`hydenix/configuration.nix`](https://github.com/turbcool/nixos/blob/master/hydenix/configuration.nix) (Hydenix host), [`nixarchy/configuration.nix`](https://github.com/turbcool/nixos/blob/master/nixarchy/configuration.nix) (Nixarchy host), [`common/modules/profile.nix`](https://github.com/turbcool/nixos/blob/master/common/modules/profile.nix) (Identity defaults), [`hydenix/modules/system/browsers`](https://github.com/turbcool/nixos/tree/master/hydenix/modules/system/browsers) (Browser features)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_hosts["Host configurations"]
  node_hydenix_host["Hydenix host<br/>[configuration.nix]"]
  node_nixarchy_host["Nixarchy host<br/>[configuration.nix]"]
  node_wsl_host["WSL host<br/>[configuration.nix]"]
end

subgraph group_shared["Shared configuration"]
  node_profile["Identity defaults<br/>[profile.nix]"]
  node_shared_system["System modules"]
  node_shared_packages["System packages"]
  node_shared_hm["Home Manager modules"]
end

subgraph group_desktop["Desktop features"]
  node_desktop_system["Desktop system modules"]
  node_browsers["Browser features"]
  node_gaming["Gaming features"]
  node_vr["VR support<br/>[vr.nix]"]
  node_work["Work features"]
  node_syncthing["Syncthing<br/>[syncthing.nix]"]
  node_hydenix_hm["Hydenix HM modules"]
  node_nixarchy_hm["Nixarchy HM modules"]
end

subgraph group_project_tools["Project tools"]
  node_skills["Project skills<br/>[skills.nix]"]
  node_skills_cli["Skills command"]
end

node_user(("Administrator"))
node_nixos(("NixOS system"))

node_user -->|"edits host"| node_hydenix_host
node_user -->|"edits host"| node_nixarchy_host
node_user -->|"edits host"| node_wsl_host
node_hydenix_host -->|"uses defaults"| node_profile
node_nixarchy_host -->|"uses defaults"| node_profile
node_hydenix_host -->|"toggles feature"| node_browsers
node_hydenix_host -->|"toggles feature"| node_gaming
node_hydenix_host -->|"toggles feature"| node_vr
node_hydenix_host -->|"toggles feature"| node_work
node_hydenix_host -->|"toggles feature"| node_syncthing
node_nixarchy_host -->|"toggles feature"| node_browsers
node_nixarchy_host -->|"toggles feature"| node_gaming
node_nixarchy_host -->|"toggles feature"| node_vr
node_nixarchy_host -->|"toggles feature"| node_work
node_nixarchy_host -->|"toggles feature"| node_syncthing
node_user -->|"runs command"| node_skills_cli
node_skills_cli -->|"reads sources"| node_skills
node_user -->|"applies host"| node_nixos

click node_hydenix_host "https://github.com/turbcool/nixos/blob/master/hydenix/configuration.nix"
click node_nixarchy_host "https://github.com/turbcool/nixos/blob/master/nixarchy/configuration.nix"
click node_wsl_host "https://github.com/turbcool/nixos/blob/master/wsl/configuration.nix"
click node_profile "https://github.com/turbcool/nixos/blob/master/common/modules/profile.nix"
click node_shared_system "https://github.com/turbcool/nixos/tree/master/common/modules"
click node_shared_packages "https://github.com/turbcool/nixos/tree/master/common/pkgs"
click node_shared_hm "https://github.com/turbcool/nixos/tree/master/common/hm"
click node_desktop_system "https://github.com/turbcool/nixos/tree/master/hydenix/modules/system"
click node_browsers "https://github.com/turbcool/nixos/tree/master/hydenix/modules/system/browsers"
click node_gaming "https://github.com/turbcool/nixos/tree/master/hydenix/modules/system/gaming"
click node_vr "https://github.com/turbcool/nixos/blob/master/hydenix/modules/system/gaming/vr.nix"
click node_work "https://github.com/turbcool/nixos/tree/master/hydenix/modules/system/work"
click node_syncthing "https://github.com/turbcool/nixos/blob/master/hydenix/modules/system/work/syncthing.nix"
click node_hydenix_hm "https://github.com/turbcool/nixos/tree/master/hydenix/modules/hm"
click node_nixarchy_hm "https://github.com/turbcool/nixos/tree/master/nixarchy/modules/hm"
click node_skills "https://github.com/turbcool/nixos/blob/master/config/skills.nix"

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_hydenix_host,node_nixarchy_host,node_wsl_host toneBlue
class node_profile,node_shared_system,node_shared_packages,node_shared_hm toneAmber
class node_desktop_system,node_browsers,node_gaming,node_vr,node_work,node_syncthing,node_hydenix_hm,node_nixarchy_hm toneMint
class node_skills,node_skills_cli toneRose
class node_user,node_nixos toneIndigo
```

## Components

### Host configurations

- [Hydenix host](https://github.com/turbcool/nixos/blob/master/hydenix/configuration.nix): `hydenix/configuration.nix`
- [Nixarchy host](https://github.com/turbcool/nixos/blob/master/nixarchy/configuration.nix): `nixarchy/configuration.nix`
- [WSL host](https://github.com/turbcool/nixos/blob/master/wsl/configuration.nix): `wsl/configuration.nix`

### Shared configuration

- [Identity defaults](https://github.com/turbcool/nixos/blob/master/common/modules/profile.nix): `common/modules/profile.nix`
- [System modules](https://github.com/turbcool/nixos/tree/master/common/modules): `common/modules`
- [System packages](https://github.com/turbcool/nixos/tree/master/common/pkgs): `common/pkgs`
- [Home Manager modules](https://github.com/turbcool/nixos/tree/master/common/hm): `common/hm`

### Desktop features

- [Desktop system modules](https://github.com/turbcool/nixos/tree/master/hydenix/modules/system): `hydenix/modules/system`
- [Browser features](https://github.com/turbcool/nixos/tree/master/hydenix/modules/system/browsers): `hydenix/modules/system/browsers`
- [Gaming features](https://github.com/turbcool/nixos/tree/master/hydenix/modules/system/gaming): `hydenix/modules/system/gaming`
- [VR support](https://github.com/turbcool/nixos/blob/master/hydenix/modules/system/gaming/vr.nix): `hydenix/modules/system/gaming/vr.nix`
- [Work features](https://github.com/turbcool/nixos/tree/master/hydenix/modules/system/work): `hydenix/modules/system/work`
- [Syncthing](https://github.com/turbcool/nixos/blob/master/hydenix/modules/system/work/syncthing.nix): `hydenix/modules/system/work/syncthing.nix`
- [Hydenix HM modules](https://github.com/turbcool/nixos/tree/master/hydenix/modules/hm): `hydenix/modules/hm`
- [Nixarchy HM modules](https://github.com/turbcool/nixos/tree/master/nixarchy/modules/hm): `nixarchy/modules/hm`

### Project tools

- [Project skills](https://github.com/turbcool/nixos/blob/master/config/skills.nix): `config/skills.nix`
- **Skills command**

### Other components

- **Administrator**
- **NixOS system**

## Connections

- Administrator → Hydenix host: edits host (evidence: `README.md`)
- Administrator → Nixarchy host: edits host (evidence: `README.md`)
- Administrator → WSL host: edits host (evidence: `README.md`)
- Hydenix host → Identity defaults: uses defaults (evidence: `README.md`)
- Nixarchy host → Identity defaults: uses defaults (evidence: `README.md`)
- Hydenix host → Browser features: toggles feature (evidence: `README.md`)
- Hydenix host → Gaming features: toggles feature (evidence: `README.md`)
- Hydenix host → VR support: toggles feature (evidence: `README.md`)
- Hydenix host → Work features: toggles feature (evidence: `README.md`)
- Hydenix host → Syncthing: toggles feature (evidence: `README.md`)
- Nixarchy host → Browser features: toggles feature (evidence: `README.md`)
- Nixarchy host → Gaming features: toggles feature (evidence: `README.md`)
- Nixarchy host → VR support: toggles feature (evidence: `README.md`)
- Nixarchy host → Work features: toggles feature (evidence: `README.md`)
- Nixarchy host → Syncthing: toggles feature (evidence: `README.md`)
- Administrator → Skills command: runs command (evidence: `README.md`)
- Skills command → Project skills: reads sources (evidence: `README.md`)
- Administrator → NixOS system: applies host (evidence: `README.md`)
