machines no longer need to be specified in buildClan

This commit is contained in:
Jörg Thalheim
2024-12-03 21:49:23 +01:00
parent 041547b317
commit 4d8ca2d635
2 changed files with 6 additions and 17 deletions

View File

@@ -37,13 +37,6 @@ In the `flake.nix` file:
meta.name = "Lobsters"; meta.name = "Lobsters";
# Should usually point to the directory of flake.nix # Should usually point to the directory of flake.nix
directory = ./.; directory = ./.;
machines = {
jon = {
# ...
};
# ...
}
} }
``` ```
@@ -55,13 +48,6 @@ In the `flake.nix` file:
clan = { clan = {
# Set a unique name # Set a unique name
meta.name = "Lobsters"; meta.name = "Lobsters";
machines = {
jon = {
# ...
};
# ...
}
}; };
``` ```

View File

@@ -13,14 +13,17 @@
# Ensure this is unique among all clans you want to use. # Ensure this is unique among all clans you want to use.
meta.name = "__CHANGE_ME__"; meta.name = "__CHANGE_ME__";
# All machines in the ./machines will be imported.
# Prerequisite: boot into the installer. # Prerequisite: boot into the installer.
# See: https://docs.clan.lol/getting-started/installer # See: https://docs.clan.lol/getting-started/installer
# local> mkdir -p ./machines/machine1 # local> mkdir -p ./machines/machine1
# local> Edit ./machines/<machine>/configuration.nix to your liking. # local> Edit ./machines/<machine>/configuration.nix to your liking.
machines = { machines = {
# The name will be used as hostname by default. # You can also specify additional machines here.
jon = { }; # somemachine = {
sara = { }; # imports = [ ./some-machine/configuration.nix ];
# }
}; };
}; };
in in