Overview
The Mango flake provides:- NixOS module - Installs Mango and configures system-level Wayland components
- Home-manager module - Manages user-level configuration and autostart
- Package outputs - Pre-built Mango packages for x86_64-linux and aarch64-linux
Prerequisites
- NixOS with flakes enabled
- Home-manager (optional but recommended)
- Basic understanding of Nix flakes
Quick Start
Flake Configuration
Add Mango to your flake inputs:Rebuild System
NixOS Module
The NixOS module (programs.mango) configures system-level components.
Module Options
What It Configures
When enabled, the module automatically sets up:XDG Desktop Portals
System Services
Source Reference
The NixOS module is defined in/home/daytona/workspace/source/nix/nixos-modules.nix.
Home-Manager Module
The home-manager module (wayland.windowManager.mango) manages user configuration.
Module Options
Generated Files
The module creates:Systemd Integration
Whensystemd.enable = true, the module:
- Creates
mango-session.target - Exports environment variables to systemd and D-Bus
- Starts graphical session services
- Enables XDG autostart if configured
Source Reference
The home-manager module is defined in/home/daytona/workspace/source/nix/hm-modules.nix.
Complete Example Configuration
Minimal Setup
Full-Featured Setup
Package Dependencies
Build Dependencies
The Mango package depends on:Runtime Dependencies
Recommended packages for a complete setup:Flake Structure
The Mango flake provides:Using Without Home-Manager
If you don’t use home-manager, manually create config files:Development Setup
Use the dev shell for development:Troubleshooting
Mango doesn't appear in display manager
Mango doesn't appear in display manager
Ensure the NixOS module is imported and enabled:The module adds Mango to
services.displayManager.sessionPackages.Config changes don't apply
Config changes don't apply
Home-manager doesn’t auto-reload. After changes:
Systemd services don't start
Systemd services don't start
Check systemd integration:Ensure
systemd.enable = true in home-manager config.Screen sharing doesn't work
Screen sharing doesn't work
Verify portal configuration:The NixOS module should configure portals automatically.
Build fails with scenefx error
Build fails with scenefx error
The flake pins scenefx as a dependency. If building fails:
See Also
- NixOS Manual - NixOS configuration
- Home-Manager Manual - User environment
- Nix Flakes - Flake documentation
- Configuration Reference - Mango configuration options
