Click to show an example
#### Hydra 1.0
@@ -46,7 +54,7 @@ port: 3306
-```python title="Schema for db/mysql.yaml"
+```python title="db/mysql schema in the ConfigStore"
@dataclass
class MySQLConfig:
host: str
@@ -78,7 +86,7 @@ port: 3306
-```python title="Schema for db/mysql.yaml" {8}
+```python title="db/mysql schema in the ConfigStore" {8}
@dataclass
class MySQLConfig:
host: str
@@ -92,3 +100,85 @@ cs.store(group="db",
+
+
+### Option 2: rename the config file
+This option is a bit more disruptive. Use it if you only control the config file.
+1. Rename the config file. Common choices are `custom_` or `my_` prefix, e.g. `custom_mysql.yaml`. You can also use a domain specific name like `prod_mysql.yaml`.
+2. Add the schema to the Defaults List of the extending config file.
+3. Update references to the config name accordingly, e.g. on the command-line `db=mysql` would become `db=custom_mysql`, and in a defaults list `db: mysql` would become `db: custom_mysql`.
+
+
+