From 4d8ca2d6353b6c95aa1ee726c464c60a03835ed8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Tue, 3 Dec 2024 21:49:23 +0100 Subject: [PATCH] machines no longer need to be specified in buildClan --- docs/site/getting-started/configure.md | 14 -------------- templates/clan/new-clan/flake.nix | 9 ++++++--- 2 files changed, 6 insertions(+), 17 deletions(-) diff --git a/docs/site/getting-started/configure.md b/docs/site/getting-started/configure.md index cec179f65..ccee11d94 100644 --- a/docs/site/getting-started/configure.md +++ b/docs/site/getting-started/configure.md @@ -37,13 +37,6 @@ In the `flake.nix` file: meta.name = "Lobsters"; # Should usually point to the directory of flake.nix directory = ./.; - - machines = { - jon = { - # ... - }; - # ... - } } ``` @@ -55,13 +48,6 @@ In the `flake.nix` file: clan = { # Set a unique name meta.name = "Lobsters"; - - machines = { - jon = { - # ... - }; - # ... - } }; ``` diff --git a/templates/clan/new-clan/flake.nix b/templates/clan/new-clan/flake.nix index 10594dcb5..98847f345 100644 --- a/templates/clan/new-clan/flake.nix +++ b/templates/clan/new-clan/flake.nix @@ -13,14 +13,17 @@ # Ensure this is unique among all clans you want to use. meta.name = "__CHANGE_ME__"; + # All machines in the ./machines will be imported. + # Prerequisite: boot into the installer. # See: https://docs.clan.lol/getting-started/installer # local> mkdir -p ./machines/machine1 # local> Edit ./machines//configuration.nix to your liking. machines = { - # The name will be used as hostname by default. - jon = { }; - sara = { }; + # You can also specify additional machines here. + # somemachine = { + # imports = [ ./some-machine/configuration.nix ]; + # } }; }; in