clan.core: rename clan.{deployment,networking} -> clan.core.{deployment,networking}

This commit is contained in:
DavHau
2024-07-04 16:09:15 +07:00
parent 5c7b9aa2a4
commit 18b64f2d0b
21 changed files with 63 additions and 37 deletions

View File

@@ -51,7 +51,7 @@ def show_machine_deployment_target(
[
f"{clan_dir}#clanInternals.machines.{system}.{machine_name}",
"--apply",
"machine: { inherit (machine.config.clan.networking) targetHost; }",
"machine: { inherit (machine.config.clan.core.networking) targetHost; }",
"--json",
]
)

View File

@@ -53,7 +53,7 @@ class Machine:
"deploymentAddress"
)
if val is None:
msg = f"the 'clan.networking.targetHost' nixos option is not set for machine '{self.name}'"
msg = f"the 'clan.core.networking.targetHost' nixos option is not set for machine '{self.name}'"
raise ClanError(msg)
return val

View File

@@ -161,7 +161,7 @@ def update(args: argparse.Namespace) -> None:
if not machines and ignored_machines != []:
print(
"WARNING: No machines to update. The following defined machines were ignored because they do not have `clan.networking.targetHost` nixos option set:",
"WARNING: No machines to update. The following defined machines were ignored because they do not have `clan.core.networking.targetHost` nixos option set:",
file=sys.stderr,
)
for machine in ignored_machines: