docs: Fix nix flake check problem with diskId

This commit is contained in:
Qubasa
2024-11-25 18:39:16 +01:00
parent 205fbad669
commit 4e6051acdc
8 changed files with 41 additions and 28 deletions

View File

@@ -199,21 +199,6 @@ If you only want to setup a single machine at this point, you can delete `sara`
git rm ./machines/sara
```
### Step 5: Check Configuration
Validate your configuration by running:
```bash
nix flake check
```
This command helps ensure that your system configuration is correct and free from errors.
!!! Tip
You can integrate this step into your [Continuous Integration](https://en.wikipedia.org/wiki/Continuous_integration) workflow to ensure that only valid Nix configurations are merged into your codebase.
---
## Whats next?

View File

@@ -55,7 +55,35 @@ sops/
```
If you followed the quickstart tutorial all necessary secrets are initialized at this point.
---
### Generate Facts and Vars
Typically, this step is handled automatically when a machine is deployed. However, to enable the use of `nix flake check` with your configuration, it must be completed manually beforehand.
Currently, generating all the necessary facts requires two separate commands. This is due to the coexistence of two parallel secret management solutions: the older, stable version (`clan secrets` and `clan facts`) and the newer, experimental version (`clan vars`).
To generate both facts and vars, execute the following commands:
```sh
clan facts generate && clan vars generate
```
### Check Configuration
Validate your configuration by running:
```bash
nix flake check
```
This command helps ensure that your system configuration is correct and free from errors.
!!! Tip
You can integrate this step into your [Continuous Integration](https://en.wikipedia.org/wiki/Continuous_integration) workflow to ensure that only valid Nix configurations are merged into your codebase.
## Whats next?