# bartoostveen/infra architecture

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

- Interactive diagram: https://gitdiagram.com/bartoostveen/infra
- Repository: https://github.com/bartoostveen/infra

## Overview

This repository appears to be a Nix configuration for a multi-machine fleet, covering NixOS hosts, desktop and infrastructure services, Home Manager profiles, and installer/SD images. The likely workflow is an operator selecting a host or image configuration and building a configured system; deployment and service wiring cannot be confirmed from the supplied files. The graph reflects the tree’s major areas, but source excerpts and README documentation were unavailable, so relationships are shown as unverified dashed links.

Main entry points: [`machines`](https://github.com/bartoostveen/infra/tree/master/machines) (Machine profiles), [`flake.nix`](https://github.com/bartoostveen/infra/blob/master/flake.nix) (Nix flake), [`home`](https://github.com/bartoostveen/infra/tree/master/home) (Home profiles), [`parts/deployments.nix`](https://github.com/bartoostveen/infra/blob/master/parts/deployments.nix) (Deployments)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Configuration entry"]
  node_flake["Nix flake<br/>[flake.nix]"]
  node_deploy["Deployments<br/>[deployments.nix]"]
end

subgraph group_hosts["Host configurations"]
  node_machines["Machine profiles"]
  node_images["System images"]
end

subgraph group_system["System capabilities"]
  node_desktop["Desktop modules"]
  node_wireguard["WireGuard<br/>[wireguard.nix]"]
end

subgraph group_services["Infrastructure services"]
  node_infra_common["Infrastructure base<br/>[common.nix]"]
  node_matrix["Matrix services"]
  node_mail["Mail services"]
  node_backup["Backup services"]
  node_monitoring["Monitoring<br/>[alertmanager.nix]"]
  node_forgejo["Forgejo hosting<br/>[forgejo.nix]"]
end

subgraph group_users["User environments"]
  node_home_profiles["Home profiles"]
  node_common_home["Shared home config<br/>[common.nix]"]
end

node_operator(("Operator"))

node_operator -.->|"selects config"| node_flake
node_flake -.->|"includes"| node_deploy
node_flake -.->|"defines systems"| node_machines
node_flake -.->|"defines images"| node_images
node_machines -.->|"configures"| node_desktop
node_machines -.->|"configures"| node_wireguard
node_machines -.->|"configures"| node_infra_common
node_machines -.->|"configures"| node_matrix
node_machines -.->|"configures"| node_mail
node_machines -.->|"configures"| node_backup
node_machines -.->|"configures"| node_monitoring
node_machines -.->|"configures"| node_forgejo
node_flake -.->|"defines profiles"| node_home_profiles
node_home_profiles -.->|"shares settings"| node_common_home

click node_flake "https://github.com/bartoostveen/infra/blob/master/flake.nix"
click node_deploy "https://github.com/bartoostveen/infra/blob/master/parts/deployments.nix"
click node_machines "https://github.com/bartoostveen/infra/tree/master/machines"
click node_images "https://github.com/bartoostveen/infra/tree/master/images"
click node_desktop "https://github.com/bartoostveen/infra/tree/master/modules/desktop"
click node_wireguard "https://github.com/bartoostveen/infra/blob/master/modules/wireguard.nix"
click node_infra_common "https://github.com/bartoostveen/infra/blob/master/modules/infra/common.nix"
click node_matrix "https://github.com/bartoostveen/infra/tree/master/modules/infra/matrix"
click node_mail "https://github.com/bartoostveen/infra/tree/master/modules/infra/mail"
click node_backup "https://github.com/bartoostveen/infra/tree/master/modules/infra/backup"
click node_monitoring "https://github.com/bartoostveen/infra/blob/master/modules/infra/alertmanager.nix"
click node_forgejo "https://github.com/bartoostveen/infra/blob/master/modules/infra/system-specific/sentinel/forgejo.nix"
click node_home_profiles "https://github.com/bartoostveen/infra/tree/master/home"
click node_common_home "https://github.com/bartoostveen/infra/blob/master/home/common.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_flake,node_deploy toneBlue
class node_machines,node_images toneAmber
class node_desktop,node_wireguard toneMint
class node_infra_common,node_matrix,node_mail,node_backup,node_monitoring,node_forgejo toneRose
class node_home_profiles,node_common_home,node_operator toneIndigo
```

## Components

### Configuration entry

- [Nix flake](https://github.com/bartoostveen/infra/blob/master/flake.nix): `flake.nix`
- [Deployments](https://github.com/bartoostveen/infra/blob/master/parts/deployments.nix): `parts/deployments.nix`

### Host configurations

- [Machine profiles](https://github.com/bartoostveen/infra/tree/master/machines): `machines`
- [System images](https://github.com/bartoostveen/infra/tree/master/images): `images`

### System capabilities

- [Desktop modules](https://github.com/bartoostveen/infra/tree/master/modules/desktop): `modules/desktop`
- [WireGuard](https://github.com/bartoostveen/infra/blob/master/modules/wireguard.nix): `modules/wireguard.nix`

### Infrastructure services

- [Infrastructure base](https://github.com/bartoostveen/infra/blob/master/modules/infra/common.nix): `modules/infra/common.nix`
- [Matrix services](https://github.com/bartoostveen/infra/tree/master/modules/infra/matrix): `modules/infra/matrix`
- [Mail services](https://github.com/bartoostveen/infra/tree/master/modules/infra/mail): `modules/infra/mail`
- [Backup services](https://github.com/bartoostveen/infra/tree/master/modules/infra/backup): `modules/infra/backup`
- [Monitoring](https://github.com/bartoostveen/infra/blob/master/modules/infra/alertmanager.nix): `modules/infra/alertmanager.nix`
- [Forgejo hosting](https://github.com/bartoostveen/infra/blob/master/modules/infra/system-specific/sentinel/forgejo.nix): `modules/infra/system-specific/sentinel/forgejo.nix`

### User environments

- [Home profiles](https://github.com/bartoostveen/infra/tree/master/home): `home`
- [Shared home config](https://github.com/bartoostveen/infra/blob/master/home/common.nix): `home/common.nix`

### Other components

- **Operator**

## Connections

- Operator → Nix flake: selects config
- Nix flake → Deployments: includes
- Nix flake → Machine profiles: defines systems
- Nix flake → System images: defines images
- Machine profiles → Desktop modules: configures
- Machine profiles → WireGuard: configures
- Machine profiles → Infrastructure base: configures
- Machine profiles → Matrix services: configures
- Machine profiles → Mail services: configures
- Machine profiles → Backup services: configures
- Machine profiles → Monitoring: configures
- Machine profiles → Forgejo hosting: configures
- Nix flake → Home profiles: defines profiles
- Home profiles → Shared home config: shares settings
