clan-cli: Remove flake-registry set to none in get_clan_nix_attrset

This commit is contained in:
Qubasa
2025-02-13 15:47:28 +07:00
parent b138cfcd69
commit 41cb679eab

View File

@@ -100,9 +100,6 @@ def get_clan_nix_attrset(clan_dir: Flake | None = None) -> ClanExports:
[ [
"--json", "--json",
"--impure", "--impure",
"--option",
"flake-registry",
"",
"--expr", "--expr",
eval_script, eval_script,
] ]
@@ -142,10 +139,6 @@ class FoundTemplate:
def copy_from_nixstore(src: Path, dest: Path) -> None: def copy_from_nixstore(src: Path, dest: Path) -> None:
if not src.is_dir():
msg = f"The source path '{src}' is not a directory."
raise ClanError(msg)
# Walk through the source directory # Walk through the source directory
for root, _dirs, files in src.walk(on_error=log.error): for root, _dirs, files in src.walk(on_error=log.error):
relative_path = Path(root).relative_to(src) relative_path = Path(root).relative_to(src)