How stunkymonkey/nixos works
Main Components
a. Core System Layer:
• Core configuration components from /machines/core/
• Core.nix, network.nix, users.nix, and nix.nix
b. Machine Configurations Layer:
• Each machine should have sub-components showing:
• Hardware configuration
• Network configuration
• System services
• Disk configuration (disko)
• Secrets management (sops-nix)
c. Modules Layer:
• Into three main categories:
• Hardware modules (bluetooth, graphics, sound, etc.)
• Services modules (extensive list of services like gitea, nextcloud, etc.)
• System modules (docker, fonts, kvm, etc.)
d. Profiles Layer:
• Different profile categories:
• Desktop environments (gnome, sway)
• Development profiles
• Media profiles
• System profiles
Special Elements
Create dedicated sections for:
• Flake integrations (nixos-generators, disko, sops-nix, nixinate)
• Image generation pipeline
• Secrets management flow
• Deployment workflow
Implementation Details
┌─────────────────────────────────────────────┐
• Profiles Layer │
• (Desktop, Development, Media, System) │
• ┤
• Modules Layer │
• ┌─────────┐ ┌─────────┐ ┌─────────────┐ │
• Hardware │ │Services │ │System │ │
• ┘ └─────────┘ └─────────────┘ │
• ┤
• Machine Configurations │
• ┌────────┐ ┌─────────┐ ┌─────────┐ │
• Newton │ │Serverle │ │Thinkman │ │
• ┘ └─────────┘ └─────────┘ │
• ┤
• Core System Layer │
• (core.nix, network.nix, users.nix) │
• ┘
Technical Details to Highlight
• Relationship between overlays and packages
• Where custom packages (pkgs directory) are integrated
• Points where external flakes are consumed
• Configuration inheritance chain