nixos/iso-image: add some types

ners afdf7705 c281a355

Changed files
+12 -1
nixos
modules
installer
cd-dvd
+12 -1
nixos/modules/installer/cd-dvd/iso-image.nix
···
isoImage.isoName = mkOption {
default = "${config.isoImage.isoBaseName}.iso";
+
type = lib.types.str;
description = lib.mdDoc ''
Name of the generated ISO image file.
'';
···
isoImage.isoBaseName = mkOption {
default = config.system.nixos.distroId;
+
type = lib.types.str;
description = lib.mdDoc ''
Prefix of the name of the generated ISO image file.
'';
···
isoImage.compressImage = mkOption {
default = false;
+
type = lib.types.bool;
description = lib.mdDoc ''
Whether the ISO image should be compressed using
{command}`zstd`.
···
+ lib.optionalString isAarch "-Xbcj arm"
+ lib.optionalString (isPower && is32bit && isBigEndian) "-Xbcj powerpc"
+ lib.optionalString (isSparc) "-Xbcj sparc";
+
type = lib.types.str;
description = lib.mdDoc ''
Compression settings to use for the squashfs nix store.
'';
example = "zstd -Xcompression-level 6";
-
type = types.str;
};
isoImage.edition = mkOption {
default = "";
+
type = lib.types.str;
description = lib.mdDoc ''
Specifies which edition string to use in the volume ID of the generated
ISO image.
···
isoImage.volumeID = mkOption {
# nixos-$EDITION-$RELEASE-$ARCH
default = "nixos${optionalString (config.isoImage.edition != "") "-${config.isoImage.edition}"}-${config.system.nixos.release}-${pkgs.stdenv.hostPlatform.uname.processor}";
+
type = lib.types.str;
description = lib.mdDoc ''
Specifies the label or volume ID of the generated ISO image.
Note that the label is used by stage 1 of the boot process to
···
isoImage.includeSystemBuildDependencies = mkOption {
default = false;
+
type = lib.types.bool;
description = lib.mdDoc ''
Set this option to include all the needed sources etc in the
image. It significantly increases image size. Use that when
···
isoImage.makeBiosBootable = mkOption {
default = false;
+
type = lib.types.bool;
description = lib.mdDoc ''
Whether the ISO image should be a BIOS-bootable disk.
'';
···
isoImage.makeEfiBootable = mkOption {
default = false;
+
type = lib.types.bool;
description = lib.mdDoc ''
Whether the ISO image should be an EFI-bootable volume.
'';
···
isoImage.makeUsbBootable = mkOption {
default = false;
+
type = lib.types.bool;
description = lib.mdDoc ''
Whether the ISO image should be bootable from CD as well as USB.
'';
···
isoImage.prependToMenuLabel = mkOption {
default = "";
+
type = types.str;
example = "Install ";
description = lib.mdDoc ''
The string to prepend before the menu label for the NixOS system.
···
isoImage.appendToMenuLabel = mkOption {
default = " Installer";
+
type = types.str;
example = " Live System";
description = lib.mdDoc ''
The string to append after the menu label for the NixOS system.