diff --git a/nixos/modules/system/boot/loader/grub/install-grub.pl b/nixos/modules/system/boot/loader/grub/install-grub.pl index 3128d1db0987..981b60c004c2 100644 --- a/nixos/modules/system/boot/loader/grub/install-grub.pl +++ b/nixos/modules/system/boot/loader/grub/install-grub.pl @@ -201,7 +201,7 @@ sub GrubFs { my $grubBoot = GrubFs("/boot"); my $grubStore; if ($copyKernels == 0) { - my $grubStore = GrubFs("/nix/store"); + $grubStore = GrubFs("/nix/store"); } # Generate the header.