From e18fe134308354507c981ee16295ffe12cbdb1d0 Mon Sep 17 00:00:00 2001 From: Johannes Kirschbauer Date: Sun, 6 Jul 2025 13:03:46 +0200 Subject: [PATCH] Templates: remove outdated check for 'configuration.nix' in machine templates --- pkgs/clan-cli/clan_lib/templates/handler.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/pkgs/clan-cli/clan_lib/templates/handler.py b/pkgs/clan-cli/clan_lib/templates/handler.py index 74ce167d6..185552243 100644 --- a/pkgs/clan-cli/clan_lib/templates/handler.py +++ b/pkgs/clan-cli/clan_lib/templates/handler.py @@ -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)