# mbrignall/guix-system architecture

> Architecture diagram of the GitHub repository mbrignall/guix-system, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-01-16). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mbrignall/guix-system
- Repository: https://github.com/mbrignall/guix-system

## Overview

##### Implementation Details

Technical annotations for:
- Guile Scheme configuration files
- Non-GNU dependencies
- Hardware-specific components (Nvidia GPU support)

- □ Configuration File              │
- ○ Service                         │
- ⬡ Core System Component          │
- → Configuration Flow             │
- ⇢ Service Dependency             │
- ┘

##### Layered architecture
- System level (Guix + Linux)
- Configuration management
- User environment
- Desktop interface

##### Separation between
- System configuration (/config/system/)
- Home configuration (/config/home/)
- Service definitions (/config/home/services/)

##### Relationship between
- Configuration files
- Service definitions
- Actual implemented services

##### External dependencies
- Non-GNU firmware
- Nvidia GPU support
- Audio firmware

Remember to indicate that this is an evolving system with planned modularization and feature expansion as mentioned in the Future Plans section of the README.

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph Legend
        L1[Configuration File]:::config
        L2((Service)):::service
        L3{Core Component}:::core
        L4[/Configuration Flow/]:::flow
        L5[User Environment]:::user
    end

    subgraph "GNU Guix System"
        Linux{Linux Kernel}:::core
        Firmware{Non-GNU Firmware}:::core
        Audio{Audio System}:::core
        
        Linux --> Firmware
        Firmware --> Audio
    end

    subgraph "Configuration Management"
        SysConfig["System Configuration"]:::config
        Channels["Channels Configuration"]:::config
        HomeConfig["Home Environment"]:::config
        
        SysConfig --> Linux
        Channels --> SysConfig
        HomeConfig --> SysConfig
    end

    subgraph "Shell Environment"
        BashProfile["Bash Profile"]:::config
        BashRC["Bash RC"]:::config
        
        HomeConfig --> BashProfile
        HomeConfig --> BashRC
    end

    subgraph "Desktop Environment"
        Sway((Sway WM)):::service
        Waybar((Waybar)):::service
        Fuzzel((Fuzzel)):::service
        Swaylock((Swaylock)):::service
        
        SwayConfig["Sway Config"]:::config
        XDGConfig["XDG Config"]:::config
        
        SwayConfig --> Sway
        Sway --> Waybar
        Sway --> Fuzzel
        Sway --> Swaylock
        XDGConfig -.-> Sway
    end

    subgraph "Services"
        EmacsSvc["Emacs Service"]:::config
        DesktopSvc["Desktop Services"]:::config
        
        EmacsSvc --> HomeConfig
        DesktopSvc --> HomeConfig
        DesktopSvc -.-> Sway
    end

    classDef core fill:#6495ED
    classDef config fill:#98FB98
    classDef service fill:#FFA500
    classDef user fill:#DDA0DD
    classDef flow fill:#F0F8FF

    click SysConfig "https://github.com/mbrignall/guix-system/blob/main/config/system/config.scm"
    click Channels "https://github.com/mbrignall/guix-system/blob/main/channels.scm"
    click HomeConfig "https://github.com/mbrignall/guix-system/blob/main/config/home/home-config.scm"
    click BashProfile "https://github.com/mbrignall/guix-system/blob/main/config/home/dot-bash_profile.sh"
    click BashRC "https://github.com/mbrignall/guix-system/blob/main/config/home/dot-bashrc.sh"
    click SwayConfig "https://github.com/mbrignall/guix-system/tree/main/files/sway/config"
    click XDGConfig "https://github.com/mbrignall/guix-system/blob/main/config/home/services/xdg-files.scm"
    click EmacsSvc "https://github.com/mbrignall/guix-system/blob/main/config/home/services/emacs-config.scm"
    click DesktopSvc "https://github.com/mbrignall/guix-system/blob/main/config/home/services/sway-desktop.scm"
```
