Clan automatically imports specific files from each machine directory and registers them, reducing the need for manual configuration.
Every folder under machines/{machineName} is automatically registered as a Clan machine.
The following files are detected and imported for every Clan machine:
machines/{machineName}/configuration.nix Main configuration file for the machine.
machines/{machineName}/hardware-configuration.nix Hardware-specific configuration generated by NixOS.
machines/{machineName}/facter.json Contains system facts. Automatically generated — see nixos-facter for details.
machines/{machineName}/disko.nix Disk layout configuration. See the disko quickstart for more info.
inventory.json Managed by Clan's API.
Merges with clan.inventory to extend the inventory.
.clan-flake Sentinel file to be used to locate the root of a Clan repository.
Falls back to .git, .hg, .svn, or flake.nix if not found.