Templates: remove outdated check for 'configuration.nix' in machine templates

This commit is contained in:
Johannes Kirschbauer
2025-07-06 13:03:46 +02:00
parent 8de70da475
commit e18fe13430

View File

@@ -77,14 +77,6 @@ def machine_template(
msg = f"Template {printable_template_ref} is not a directory at {src_path}"
raise ClanError(msg)
# TODO: Do we really need to check for a specific file in the template?
if not (src_path / "configuration.nix").exists():
msg = f"Template {printable_template_ref} does not contain a configuration.nix"
raise ClanError(
msg,
description="Template machine must contain a configuration.nix",
)
tmp_machine = Machine(flake=flake, name=dst_machine_name)
dst_machine_dir = specific_machine_dir(tmp_machine)