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.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.
Other Auto-included Files
-
inventory.json
Managed by Clan's API. Merges withclan.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
, orflake.nix
if not found.