prefix nixpkgs# explicitly in nix_shell

This makes the function usage less confusing (you can now tell from the call side what are flags and what is passed to nix-shell) and allows to use different flakes to download packages.
This commit is contained in:
Jörg Thalheim
2023-12-08 15:00:11 +01:00
parent af3001a3ac
commit 0e91f8721f
12 changed files with 45 additions and 39 deletions

View File

@@ -28,7 +28,7 @@ def install_nixos(machine: Machine) -> None:
subprocess.run(
nix_shell(
["nixos-anywhere"],
["nixpkgs#nixos-anywhere"],
[
"nixos-anywhere",
"-f",