about summary refs log tree commit diff
path: root/nixos/modules/system/boot/loader/grub
diff options
context:
space:
mode:
authorGraham Christensen <graham@grahamc.com>2020-03-05 17:07:20 -0500
committerGraham Christensen <graham@grahamc.com>2020-04-12 08:12:50 -0400
commitec2d28e3233c4c04fe6afe13e828691d099167ae (patch)
tree80d3efd6ffd191559bd5d222a765570cc73c604e /nixos/modules/system/boot/loader/grub
parent807ca93fadd5197c2260490de0c76e500562dc05 (diff)
downloadnixlib-ec2d28e3233c4c04fe6afe13e828691d099167ae.tar
nixlib-ec2d28e3233c4c04fe6afe13e828691d099167ae.tar.gz
nixlib-ec2d28e3233c4c04fe6afe13e828691d099167ae.tar.bz2
nixlib-ec2d28e3233c4c04fe6afe13e828691d099167ae.tar.lz
nixlib-ec2d28e3233c4c04fe6afe13e828691d099167ae.tar.xz
nixlib-ec2d28e3233c4c04fe6afe13e828691d099167ae.tar.zst
nixlib-ec2d28e3233c4c04fe6afe13e828691d099167ae.zip
specialisation: replace nesting with named configurations
Co-authored-by: worldofpeace <worldofpeace@protonmail.ch>
Diffstat (limited to 'nixos/modules/system/boot/loader/grub')
-rw-r--r--nixos/modules/system/boot/loader/grub/install-grub.pl5
1 files changed, 3 insertions, 2 deletions
diff --git a/nixos/modules/system/boot/loader/grub/install-grub.pl b/nixos/modules/system/boot/loader/grub/install-grub.pl
index ca0fb0248e0e..8df18cbd9013 100644
--- a/nixos/modules/system/boot/loader/grub/install-grub.pl
+++ b/nixos/modules/system/boot/loader/grub/install-grub.pl
@@ -409,7 +409,7 @@ $conf .= "$extraEntries\n" unless $extraEntriesBeforeNixOS;
 
 # Find all the children of the current default configuration
 # Do not search for grand children
-my @links = sort (glob "$defaultConfig/fine-tune/*");
+my @links = sort (glob "$defaultConfig/specialisation/*");
 foreach my $link (@links) {
 
     my $entryName = "";
@@ -425,7 +425,8 @@ foreach my $link (@links) {
     if ($cfgName) {
         $entryName = $cfgName;
     } else {
-        $entryName = "($date - $version)";
+        my $linkname = basename($link);
+        $entryName = "($linkname - $date - $version)";
     }
     addEntry("NixOS - $entryName", $link);
 }