Fixed failing tests in machines and history cli, removed test_machines_api.py

This commit is contained in:
Qubasa
2023-12-14 18:25:42 +01:00
parent 67be1d1977
commit 30cd375d98
9 changed files with 45 additions and 295 deletions

View File

@@ -11,12 +11,12 @@ from ..nix import nix_config, nix_eval
log = logging.getLogger(__name__)
def list_machines(flake_dir: Path) -> list[str]:
def list_machines(flake_url: Path | str) -> list[str]:
config = nix_config()
system = config["system"]
cmd = nix_eval(
[
f"{flake_dir}#clanInternals.machines.{system}",
f"{flake_url}#clanInternals.machines.{system}",
"--apply",
"builtins.attrNames",
"--json",