Docs: add/improve autloaded machine files section
This commit is contained in:
@@ -16,16 +16,13 @@ Clan currently offers the following methods to configure machines:
|
|||||||
|
|
||||||
- machines/`machine_name`/configuration.nix (`autoincluded` if it exists)
|
- machines/`machine_name`/configuration.nix (`autoincluded` if it exists)
|
||||||
|
|
||||||
|
See the complete [list](../manual/adding-machines.md#automatic-register) of auto-loaded files.
|
||||||
|
|
||||||
???+ Note "Used by CLI & UI"
|
???+ Note "Used by CLI & UI"
|
||||||
|
|
||||||
- inventory.json
|
- inventory.json
|
||||||
- machines/`machine_name`/hardware-configuration.nix (`autoincluded` if it exists)
|
|
||||||
|
|
||||||
|
|
||||||
!!! Warning "Deprecated"
|
|
||||||
|
|
||||||
machines/`machine_name`/settings.json
|
|
||||||
|
|
||||||
## Global configuration
|
## Global configuration
|
||||||
|
|
||||||
In the `flake.nix` file:
|
In the `flake.nix` file:
|
||||||
|
|||||||
@@ -9,11 +9,14 @@ Clan has two general methods of adding machines
|
|||||||
|
|
||||||
Every machine of the form `machines/{machineName}` will be registered automatically.
|
Every machine of the form `machines/{machineName}` will be registered automatically.
|
||||||
|
|
||||||
Automatically imported:
|
!!! info "Automatically loaded files"
|
||||||
|
|
||||||
- [x] ``machines/{machineName}/configuration.nix`
|
Some files are loaded by a clan machine automatically. This decision was made for convinience and allows easier automation.
|
||||||
- [x] ``machines/{machineName}/hardware-configuration.nix`
|
|
||||||
- [x] ``machines/{machineName}/facter.json` Automatically configured, for further information see [nixos-facter](https://clan.lol/blog/nixos-facter/)
|
- [x] ``machines/{machineName}/configuration.nix`
|
||||||
|
- [x] ``machines/{machineName}/hardware-configuration.nix`
|
||||||
|
- [x] ``machines/{machineName}/facter.json` Automatically configured, for further information see [nixos-facter](https://clan.lol/blog/nixos-facter/)
|
||||||
|
- [x] ``machines/{machineName}/disko.nix` Automatically loaded, for further information see the [disko docs](https://github.com/nix-community/disko/blob/master/docs/quickstart.md).
|
||||||
|
|
||||||
## Manual declaration
|
## Manual declaration
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user