How srid/nixos-config works
Main Components Structure
┌─ Configuration Layer ─────────────────────┐
• ./configurations/ │
• darwin/ (macOS configs) │
• nixos/ (NixOS configs) │
• home/ (Home-manager configs) │
• ┤
• Module Layer │
• ./modules/ │
• darwin/ (Darwin-specific modules) │
• nixos/ (NixOS-specific modules) │
• home/ (Home-manager modules) │
• flake-parts/ (Flake module system) │
• ┤
• Infrastructure Layer │
• overlays/ (Nixpkgs modifications) │
• packages/ (Custom packages) │
• secrets/ (Agenix-managed secrets) │
• ┘
Component Relationships
┌─ System Configurations ─────┐
• NixOS │
• Desktop/Laptop │
• Server │
• Darwin (macOS) │
• ┘
┌─ Feature Modules ──────────┐
• GUI (Hyprland/KDE) │
• Development Tools │
• System Services │
• Security │
• ┘
Important Elements to Highlight
• flake.nix as the entry point
• flake-parts module system
• Configuration inheritance patterns
• Secret management with agenix
• System-specific customizations
• Home-manager integration
Integration Points
Clear integration points for:
• NixOS system configuration
• Darwin system configuration
• Home-manager user configuration
• Overlay system
• Secret management
• Custom package definitions
Deployment Flow
A separate section showing the deployment flow:
Source Code → Flake Build → System Generation → Deployment