rename nix_shell_legacy to nix_shell and run_cmd to nix_shell

Than it's more obvious that we need to migrate.
This commit is contained in:
Jörg Thalheim
2025-04-16 19:57:13 +02:00
committed by Mic92
parent 4b9a0d8c19
commit 2240a3a533
24 changed files with 69 additions and 65 deletions

View File

@@ -13,7 +13,7 @@ from clan_cli.errors import ClanCmdError, ClanError
from clan_cli.flake import Flake
from clan_cli.git import commit_file
from clan_cli.machines.machines import Machine
from clan_cli.nix import nix_config, nix_eval, run_cmd
from clan_cli.nix import nix_config, nix_eval, nix_shell
from .types import machine_name_type
@@ -144,7 +144,7 @@ def generate_machine_hardware_info(opts: HardwareGenerateOptions) -> HardwareCon
if opts.password:
deps += ["sshpass"]
cmd = run_cmd(
cmd = nix_shell(
deps,
[
*(["sshpass", "-p", opts.password] if opts.password else []),