Interact with templates
Usage: clan templates
This subcommand provides an interface to templates provided by clan.
$ clan templates list
List all available templates
Usage differs based on the template type
Clan templates
$ clan init --template=default
Create a clan from the shipped (builtin) 'default' clan template
$ clan flakes create --template=.#myTemplate
Create a clan from the myTemplate template defined in the current flake
$ clan flakes create --template=github:owner/repo#foo
Specifies a remote url or path to the flake containing the template 'foo'
Disk templates
$ clan templates apply disk [TEMPLATE] [MACHINE]
Will apply the specified [TEMPLATE] to the [MACHINE]
Many templates require to set variables via the --set flag. $ clan templates apply disk [TEMPLATE] [MACHINE] --set key1 value1 --set key2 value2
Real world example $ clan templates apply disk single-disk jon --set mainDisk "/dev/disk/by-id/nvme-WD_PC_SN740_SDDQNQD-512G-1201_232557804368"
Machine templates
$ clan templates apply machine [TEMPLATE] [MACHINE_NAME]
Will create a new machine [MACHINE_NAME] from the specified [TEMPLATE]
Real world example $ clan templates apply machine flash-installer my-installer
Usage: clan templates apply
Usage: clan templates apply disk
<('placeholder', 'value')> Set a placeholder in the template to a value<('name', 'value')> Nix option to set<PATH> path to the flake where the clan resides in, can be a remote flake or local, can be set through the [CLAN_DIR] environment variableUsage: clan templates apply machine
<('name', 'value')> Nix option to set<PATH> path to the flake where the clan resides in, can be a remote flake or local, can be set through the [CLAN_DIR] environment variableUsage: clan templates list
<('name', 'value')> Nix option to set<PATH> path to the flake where the clan resides in, can be a remote flake or local, can be set through the [CLAN_DIR] environment variable