- Each machine host is defined under
hosts/<hostname>/
- Contains from three core files:
configuration.nix
- System configurationhardware-configuration.nix
- Hardware-specific settingshome.nix
- User environment configuration
- Host configurations are defined using
mkSystem
inflake.nix
- New hosts must extend the
nixosConfigurations
attribute
- Home Manager modules are located under
modules/
- Contains customized configurations for services and packages
- Legacy system configurations are temporarily stored in
modules/system/
- These will be migrated to appropriate module locations
- Custom Nix overlays are stored in the
overlays/
directory