Auto-included Files
Clan automatically imports specific files from each machine directory and registers them, reducing the need for manual configuration.
Machine Registration
Every folder under machines/{machineName} is automatically registered as a Clan machine.
Files loaded automatically for each machine
The following files are detected and imported for every Clan machine:
-
machines/{machineName}/configuration.nixMain configuration file for the machine. -
machines/{machineName}/hardware-configuration.nixHardware-specific configuration generated by NixOS. -
machines/{machineName}/facter.jsonContains system facts. Automatically generated — see nixos-facter for details. -
machines/{machineName}/disko.nixDisk layout configuration. See the disko quickstart for more info.
Other Auto-included Files
-
inventory.jsonManaged by Clan's API. Merges withclan.inventoryto extend the inventory. -
.clan-flakeSentinel file to be used to locate the root of a Clan repository. Falls back to.git,.hg,.svn, orflake.nixif not found.