From fe47157a7caf32240daebcf4cad2cb97e3eb2f6d Mon Sep 17 00:00:00 2001 From: Johannes Kirschbauer Date: Thu, 3 Jul 2025 11:42:26 +0200 Subject: [PATCH] docs: fix wrong roles assignment syntax --- docs/site/guides/clanServices.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/site/guides/clanServices.md b/docs/site/guides/clanServices.md index 465098122..c2272ad76 100644 --- a/docs/site/guides/clanServices.md +++ b/docs/site/guides/clanServices.md @@ -17,8 +17,10 @@ For example: ```nix inventory.instances = { borgbackup = { - roles.client.machines = [ "laptop" "server1" ]; - roles.server.machines = [ "backup-box" ]; + roles.client.machines."laptop" = {}; + roles.client.machines."server1" = {}; + + roles.server.machines."backup-box" = {}; }; } ``` @@ -40,7 +42,8 @@ Example of instantiating a `borgbackup` service using `clan-core`: ```nix inventory.instances = { # Instance Name: Different name for this 'borgbackup' instance - borgbackup-example = { + borgbackup = { + # Since this is instances."borgbackup" the whole `module = { ... }` below is equivalent and optional. module = { name = "borgbackup"; # <-- Name of the module (optional) input = "clan-core"; # <-- The flake input where the service is defined (optional)