# kexick/nixos architecture

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

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

## Overview

This repository is a Nix-based personal system configuration, with a desktop host and separate system- and user-level settings. Its visible scope includes core OS, hardware, desktop and program configuration, services and security, plus Home Manager applications and development tools. The tree supports these subsystem boundaries, but no README or source excerpts were provided, so runtime entry points and relationships between configuration modules cannot be verified; the graph therefore avoids asserting connections.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_system["System configuration"]
  node_flake["Nix flake<br/>[flake.nix]"]
  node_host["Desktop host<br/>[default.nix]"]
  node_core["Core OS settings"]
end

subgraph group_desktop["Desktop and hardware"]
  node_hardware["Hardware settings"]
  node_desktop_system["Desktop system"]
  node_programs["System programs"]
end

subgraph group_services["Services and security"]
  node_services["System services"]
  node_backup["Borg backups"]
  node_xray["Xray networking"]
  node_security["Secret management<br/>[sops.nix]"]
end

subgraph group_home["User environment"]
  node_user_desktop["User desktop"]
  node_home_base["User base"]
  node_home_apps["User applications"]
end

subgraph group_development["Development tools"]
  node_dev["Development settings"]
  node_nvf["Neovim configuration"]
end

click node_flake "https://github.com/kexick/nixos/blob/main/flake.nix"
click node_host "https://github.com/kexick/nixos/blob/main/hosts/desktop/default.nix"
click node_core "https://github.com/kexick/nixos/tree/main/modules/core"
click node_hardware "https://github.com/kexick/nixos/tree/main/modules/hardware"
click node_desktop_system "https://github.com/kexick/nixos/tree/main/modules/desktop"
click node_programs "https://github.com/kexick/nixos/tree/main/modules/programs"
click node_user_desktop "https://github.com/kexick/nixos/tree/main/home/modules/desktop"
click node_services "https://github.com/kexick/nixos/tree/main/modules/services"
click node_backup "https://github.com/kexick/nixos/tree/main/modules/services/borg"
click node_xray "https://github.com/kexick/nixos/tree/main/modules/services/xray"
click node_security "https://github.com/kexick/nixos/blob/main/modules/security/sops.nix"
click node_home_base "https://github.com/kexick/nixos/tree/main/home/modules/base"
click node_home_apps "https://github.com/kexick/nixos/tree/main/home/modules/apps"
click node_dev "https://github.com/kexick/nixos/tree/main/home/modules/dev"
click node_nvf "https://github.com/kexick/nixos/tree/main/home/modules/dev/nvf/modules"

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_host,node_core toneBlue
class node_hardware,node_desktop_system,node_programs toneAmber
class node_services,node_backup,node_xray,node_security toneMint
class node_user_desktop,node_home_base,node_home_apps toneRose
class node_dev,node_nvf toneIndigo
```

## Components

### System configuration

- [Nix flake](https://github.com/kexick/nixos/blob/main/flake.nix): `flake.nix`
- [Desktop host](https://github.com/kexick/nixos/blob/main/hosts/desktop/default.nix): `hosts/desktop/default.nix`
- [Core OS settings](https://github.com/kexick/nixos/tree/main/modules/core): `modules/core`

### Desktop and hardware

- [Hardware settings](https://github.com/kexick/nixos/tree/main/modules/hardware): `modules/hardware`
- [Desktop system](https://github.com/kexick/nixos/tree/main/modules/desktop): `modules/desktop`
- [System programs](https://github.com/kexick/nixos/tree/main/modules/programs): `modules/programs`

### Services and security

- [System services](https://github.com/kexick/nixos/tree/main/modules/services): `modules/services`
- [Borg backups](https://github.com/kexick/nixos/tree/main/modules/services/borg): `modules/services/borg`
- [Xray networking](https://github.com/kexick/nixos/tree/main/modules/services/xray): `modules/services/xray`
- [Secret management](https://github.com/kexick/nixos/blob/main/modules/security/sops.nix): `modules/security/sops.nix`

### User environment

- [User desktop](https://github.com/kexick/nixos/tree/main/home/modules/desktop): `home/modules/desktop`
- [User base](https://github.com/kexick/nixos/tree/main/home/modules/base): `home/modules/base`
- [User applications](https://github.com/kexick/nixos/tree/main/home/modules/apps): `home/modules/apps`

### Development tools

- [Development settings](https://github.com/kexick/nixos/tree/main/home/modules/dev): `home/modules/dev`
- [Neovim configuration](https://github.com/kexick/nixos/tree/main/home/modules/dev/nvf/modules): `home/modules/dev/nvf/modules`
