summary refs log tree commit diff
path: root/nixos/modules/installer/tools/nixos-checkout.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/modules/installer/tools/nixos-checkout.nix')
-rw-r--r--nixos/modules/installer/tools/nixos-checkout.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/installer/tools/nixos-checkout.nix b/nixos/modules/installer/tools/nixos-checkout.nix
index 9cdd8a74a18..07274e139f7 100644
--- a/nixos/modules/installer/tools/nixos-checkout.nix
+++ b/nixos/modules/installer/tools/nixos-checkout.nix
@@ -27,7 +27,7 @@ let
 
         if [ -z "$(type -P git)" ]; then
             echo "installing Git..."
-            nix-env -iA nixos.pkgs.git || nix-env -i git
+            nix-env -iA nixos.git
         fi
 
         # Move any old nixpkgs directories out of the way.