nixos/iso-image: Allow to customize menu label.
It comes in handy to alter the menu label if you're not building a NixOS installer image but for example if you want to build a live system and still want to re-use the iso-image.nix module. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
parent
88c7e4aa94
commit
f9bd72f24c
@ -40,7 +40,7 @@ let
|
|||||||
DEFAULT boot
|
DEFAULT boot
|
||||||
|
|
||||||
LABEL boot
|
LABEL boot
|
||||||
MENU LABEL NixOS ${config.system.nixosVersion} Installer
|
MENU LABEL NixOS ${config.system.nixosVersion}${config.isoImage.appendToMenuLabel}
|
||||||
LINUX /boot/bzImage
|
LINUX /boot/bzImage
|
||||||
APPEND init=${config.system.build.toplevel}/init ${toString config.boot.kernelParams}
|
APPEND init=${config.system.build.toplevel}/init ${toString config.boot.kernelParams}
|
||||||
INITRD /boot/initrd
|
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 <literal>XXX</literal>:
|
||||||
|
|
||||||
|
<para><literal>NixOS 99.99-pre666XXX</literal></para>
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user