From 85d4d3a54e9e8edbbddd0062cb3418e6f4e1d194 Mon Sep 17 00:00:00 2001 From: Johannes Kirschbauer Date: Mon, 24 Jun 2024 15:25:36 +0200 Subject: [PATCH] Template: use inventory --- templates/new-clan/flake.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/templates/new-clan/flake.nix b/templates/new-clan/flake.nix index 7fb1361e..e6c67311 100644 --- a/templates/new-clan/flake.nix +++ b/templates/new-clan/flake.nix @@ -11,7 +11,19 @@ # Usage see: https://docs.clan.lol clan = clan-core.lib.buildClan { directory = self; - clanName = "__CHANGE_ME__"; # Ensure this is internet wide unique. + meta.name = "__CHANGE_ME__"; # Ensure this is internet wide unique. + + # Distributed services + inventory = { + services = { + # This example configures a BorgBackup service + # Check: https://docs.clan.lol/reference/clanModules which ones are available in Inventory + borgbackup.instance_1 = { + roles.server.machines = [ "jon" ]; + roles.client.machines = [ "sara" ]; + }; + }; + }; # Prerequisite: boot into the installer # See: https://docs.clan.lol/getting-started/installer