diff --git a/nixos/modules/installer/cd-dvd/iso-image.nix b/nixos/modules/installer/cd-dvd/iso-image.nix
index c546b8df4744..0128fa9f33dd 100644
--- a/nixos/modules/installer/cd-dvd/iso-image.nix
+++ b/nixos/modules/installer/cd-dvd/iso-image.nix
@@ -40,7 +40,7 @@ let
DEFAULT boot
LABEL boot
- MENU LABEL NixOS ${config.system.nixosVersion} Installer
+ MENU LABEL NixOS ${config.system.nixosVersion}${config.isoImage.appendToMenuLabel}
LINUX /boot/bzImage
APPEND init=${config.system.build.toplevel}/init ${toString config.boot.kernelParams}
INITRD /boot/initrd
@@ -192,6 +192,18 @@ in
'';
};
+ isoImage.appendToMenuLabel = mkOption {
+ default = " Installer";
+ example = " Live System";
+ description = ''
+ The string to append after the menu label for the NixOS system.
+ This will be directly appended (without whitespace) to the NixOS version
+ string, like for example if it is set to XXX:
+
+ NixOS 99.99-pre666XXX
+ '';
+ };
+
};
config = {