# luantorv/nixconf architecture

> Architecture diagram of the GitHub repository luantorv/nixconf, 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/luantorv/nixconf
- Repository: https://github.com/luantorv/nixconf

## Overview

NixConf composes per-host NixOS configurations from system profiles, Home Manager profiles, reusable modules, and user identities. The documented host choices are a Plasma laptop and a minimal server; the profiles also provide River configurations. The graph preserves desktop, minimal-environment, secrets, Android, and development-shell capabilities described in the README. Source excerpts were unavailable, so relationships are limited to README statements; no implementation-level calls are inferred.

Main entry points: [`profiles/home`](https://github.com/luantorv/nixconf/tree/main/profiles/home) (Home profiles), [`profiles/system`](https://github.com/luantorv/nixconf/tree/main/profiles/system) (System profiles), [`hosts/laptop/default.nix`](https://github.com/luantorv/nixconf/blob/main/hosts/laptop/default.nix) (Laptop host), [`hosts/server/default.nix`](https://github.com/luantorv/nixconf/blob/main/hosts/server/default.nix) (Server host)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_host_composition["Host composition"]
  node_laptop["Laptop host<br/>[default.nix]"]
  node_server["Server host<br/>[default.nix]"]
  node_host_users["Host user selection<br/>[users.nix]"]
  node_identity["Luis identity<br/>[default.nix]"]
  node_personal_home["Personal settings<br/>[home.nix]"]
end

subgraph group_system["System configuration"]
  node_system_profiles["System profiles"]
  node_system_modules["NixOS modules"]
  node_boot["Boot configuration"]
  node_core["Core system"]
  node_security["Security and secrets<br/>[security.nix]"]
  node_android["Android integration<br/>[android.nix]"]
end

subgraph group_home["Home environments"]
  node_home_profiles["Home profiles"]
  node_home_modules["Home Manager modules"]
  node_minimal_home["Minimal environment<br/>[minimal.nix]"]
  node_river_home["River desktop<br/>[river.nix]"]
  node_plasma_home["Plasma desktop<br/>[plasma.nix]"]
  node_desktop_packages["Desktop applications<br/>[desktop.nix]"]
end

subgraph group_support["Shared support"]
  node_dev_shells["Development shells"]
  node_secrets_file[("Encrypted secrets<br/>[secrets.yaml]")]
end

node_operator(("System operator"))

node_operator -->|"builds or activates"| node_laptop
node_operator -->|"builds or activates"| node_server
node_laptop -->|"selects Plasma"| node_system_profiles
node_laptop -->|"selects Plasma"| node_home_profiles
node_server -->|"selects minimal"| node_system_profiles
node_server -->|"selects minimal"| node_home_profiles
node_host_users -->|"includes account"| node_identity
node_system_profiles -->|"selects services"| node_system_modules
node_system_profiles -->|"selects boot setup"| node_boot
node_system_profiles -->|"selects system config"| node_core
node_home_profiles -->|"selects preferences"| node_home_modules
node_home_profiles -->|"offers minimal"| node_minimal_home
node_home_profiles -->|"offers River"| node_river_home
node_home_profiles -->|"offers Plasma"| node_plasma_home
node_plasma_home -->|"includes shared tier"| node_desktop_packages
node_identity -->|"has settings"| node_personal_home
node_operator -->|"enters shell"| node_dev_shells

click node_laptop "https://github.com/luantorv/nixconf/blob/main/hosts/laptop/default.nix"
click node_server "https://github.com/luantorv/nixconf/blob/main/hosts/server/default.nix"
click node_host_users "https://github.com/luantorv/nixconf/blob/main/hosts/laptop/users.nix"
click node_identity "https://github.com/luantorv/nixconf/blob/main/users/luis/default.nix"
click node_personal_home "https://github.com/luantorv/nixconf/blob/main/users/luis/home.nix"
click node_system_profiles "https://github.com/luantorv/nixconf/tree/main/profiles/system"
click node_system_modules "https://github.com/luantorv/nixconf/tree/main/modules/nixos"
click node_boot "https://github.com/luantorv/nixconf/tree/main/modules/nixos/boot"
click node_core "https://github.com/luantorv/nixconf/tree/main/modules/nixos/core"
click node_security "https://github.com/luantorv/nixconf/blob/main/modules/nixos/security.nix"
click node_android "https://github.com/luantorv/nixconf/blob/main/modules/nixos/android.nix"
click node_home_profiles "https://github.com/luantorv/nixconf/tree/main/profiles/home"
click node_home_modules "https://github.com/luantorv/nixconf/tree/main/modules/home"
click node_minimal_home "https://github.com/luantorv/nixconf/blob/main/profiles/home/minimal.nix"
click node_river_home "https://github.com/luantorv/nixconf/blob/main/profiles/home/river.nix"
click node_plasma_home "https://github.com/luantorv/nixconf/blob/main/profiles/home/plasma.nix"
click node_desktop_packages "https://github.com/luantorv/nixconf/blob/main/modules/home/packages/desktop.nix"
click node_dev_shells "https://github.com/luantorv/nixconf/tree/main/shells"
click node_secrets_file "https://github.com/luantorv/nixconf/blob/main/secrets/secrets.yaml"

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_laptop,node_server,node_host_users,node_identity,node_personal_home toneBlue
class node_system_profiles,node_system_modules,node_boot,node_core,node_security,node_android toneAmber
class node_home_profiles,node_home_modules,node_minimal_home,node_river_home,node_plasma_home,node_desktop_packages toneMint
class node_dev_shells,node_secrets_file toneRose
class node_operator toneIndigo
```

## Components

### Host composition

- [Laptop host](https://github.com/luantorv/nixconf/blob/main/hosts/laptop/default.nix): `hosts/laptop/default.nix`
- [Server host](https://github.com/luantorv/nixconf/blob/main/hosts/server/default.nix): `hosts/server/default.nix`
- [Host user selection](https://github.com/luantorv/nixconf/blob/main/hosts/laptop/users.nix): `hosts/laptop/users.nix`
- [Luis identity](https://github.com/luantorv/nixconf/blob/main/users/luis/default.nix): `users/luis/default.nix`
- [Personal settings](https://github.com/luantorv/nixconf/blob/main/users/luis/home.nix): `users/luis/home.nix`

### System configuration

- [System profiles](https://github.com/luantorv/nixconf/tree/main/profiles/system): `profiles/system`
- [NixOS modules](https://github.com/luantorv/nixconf/tree/main/modules/nixos): `modules/nixos`
- [Boot configuration](https://github.com/luantorv/nixconf/tree/main/modules/nixos/boot): `modules/nixos/boot`
- [Core system](https://github.com/luantorv/nixconf/tree/main/modules/nixos/core): `modules/nixos/core`
- [Security and secrets](https://github.com/luantorv/nixconf/blob/main/modules/nixos/security.nix): `modules/nixos/security.nix`
- [Android integration](https://github.com/luantorv/nixconf/blob/main/modules/nixos/android.nix): `modules/nixos/android.nix`

### Home environments

- [Home profiles](https://github.com/luantorv/nixconf/tree/main/profiles/home): `profiles/home`
- [Home Manager modules](https://github.com/luantorv/nixconf/tree/main/modules/home): `modules/home`
- [Minimal environment](https://github.com/luantorv/nixconf/blob/main/profiles/home/minimal.nix): `profiles/home/minimal.nix`
- [River desktop](https://github.com/luantorv/nixconf/blob/main/profiles/home/river.nix): `profiles/home/river.nix`
- [Plasma desktop](https://github.com/luantorv/nixconf/blob/main/profiles/home/plasma.nix): `profiles/home/plasma.nix`
- [Desktop applications](https://github.com/luantorv/nixconf/blob/main/modules/home/packages/desktop.nix): `modules/home/packages/desktop.nix`

### Shared support

- [Development shells](https://github.com/luantorv/nixconf/tree/main/shells): `shells`
- [Encrypted secrets](https://github.com/luantorv/nixconf/blob/main/secrets/secrets.yaml): `secrets/secrets.yaml`

### Other components

- **System operator**

## Connections

- System operator → Laptop host: builds or activates (evidence: `README.md`)
- System operator → Server host: builds or activates (evidence: `README.md`)
- Laptop host → System profiles: selects Plasma (evidence: `README.md`)
- Laptop host → Home profiles: selects Plasma (evidence: `README.md`)
- Server host → System profiles: selects minimal (evidence: `README.md`)
- Server host → Home profiles: selects minimal (evidence: `README.md`)
- Host user selection → Luis identity: includes account (evidence: `README.md`)
- System profiles → NixOS modules: selects services (evidence: `README.md`)
- System profiles → Boot configuration: selects boot setup (evidence: `README.md`)
- System profiles → Core system: selects system config (evidence: `README.md`)
- Home profiles → Home Manager modules: selects preferences (evidence: `README.md`)
- Home profiles → Minimal environment: offers minimal (evidence: `README.md`)
- Home profiles → River desktop: offers River (evidence: `README.md`)
- Home profiles → Plasma desktop: offers Plasma (evidence: `README.md`)
- Plasma desktop → Desktop applications: includes shared tier (evidence: `README.md`)
- Luis identity → Personal settings: has settings (evidence: `README.md`)
- System operator → Development shells: enters shell (evidence: `README.md`)
