nixos-rebuild-ng: add FLAKE_FLAGS to nix copy

This commit is contained in:
Thiago Kenji Okada
2025-06-24 15:49:24 +01:00
parent 1785337274
commit 12e016d32d
3 changed files with 5 additions and 0 deletions
@@ -210,6 +210,7 @@ def copy_closure(
run_wrapper(
[
"nix",
*FLAKE_FLAGS,
"copy",
*dict_to_flags(copy_flags),
"--from",
@@ -688,6 +688,8 @@ def test_execute_nix_switch_build_target_host(
call(
[
"nix",
"--extra-experimental-features",
"nix-command flakes",
"copy",
"--from",
"ssh://user@build-host",
@@ -263,6 +263,8 @@ def test_copy_closure(monkeypatch: MonkeyPatch) -> None:
mock_run.assert_called_with(
[
"nix",
"--extra-experimental-features",
"nix-command flakes",
"copy",
"--copy-flag",
"--from",