summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--nixos/modules/system/boot/loader/grub/install-grub.pl2
1 files changed, 1 insertions, 1 deletions
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.