How ludovicopiero/dotfiles works
Main Components Structure
a) Configuration Layer (Top Level)
• "flake.nix" at the top as the entry point
• To hosts/ and modules/ directories
b) Host Configuration Layer
• "hosts/sforza" as the main system configuration
• Link to hardware-configuration.nix and configuration.nix
c) Modules Layer (Group by functionality)
• System Modules:
• Desktop Environment (Hyprland, Waybar, Mako)
• Security (GPG, Secrets)
• Network (DNSCrypt2, TeaVPN2)
• User Applications:
• Shell Environment (Fish)
• Browsers (Firefox, Floorp)
• Development Tools (Neovim)
• Input Methods (Fcitx5)
Component Relationships
Key relationships:
• Flake.nix → Host Configuration
• Host Configuration → Module Groups
• Module Dependencies (e.g., XDG-Portal → Hyprland)
• Secrets Management Flow
Specific Implementation Details
Crucial elements:
• Home-Manager integration (modules/shared/home-manager.nix)
• Theme system (modules/theme)
• Security layer (modules/shared/security.nix)
• User management (modules/shared/users.nix)
┌─ Flake.nix ─────────────────────┐
• ┌─ Hosts ─┐ ┌─ Modules ─┐ │
• Sforza │ │ Desktop │ │
• ↔ │ Security │ │
• ┘ │ Network │ │
• Apps │ │
• ┘ │
• ┘