clan_cli/nix: convert path to string

This commit is contained in:
lassulus
2023-09-14 10:42:04 +02:00
committed by Mic92
parent acf1c0b87a
commit 55fc055549

View File

@@ -10,10 +10,10 @@ def nix_build_machine(
machine: str, attr: list[str], flake_url: Path | None = None
) -> list[str]:
if flake_url is None:
flake_url = str(get_clan_flake_toplevel())
flake_url = get_clan_flake_toplevel()
payload = json.dumps(
dict(
clan_flake=flake_url,
clan_flake=flake_url.as_posix(),
machine=machine,
attr=attr,
)