nixos/iso-image: add some types
This commit is contained in:
parent
c281a355fe
commit
afdf7705ad
@ -452,6 +452,7 @@ in
|
||||
|
||||
isoImage.isoName = mkOption {
|
||||
default = "${config.isoImage.isoBaseName}.iso";
|
||||
type = lib.types.str;
|
||||
description = lib.mdDoc ''
|
||||
Name of the generated ISO image file.
|
||||
'';
|
||||
@ -459,6 +460,7 @@ in
|
||||
|
||||
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.
|
||||
'';
|
||||
@ -466,6 +468,7 @@ in
|
||||
|
||||
isoImage.compressImage = mkOption {
|
||||
default = false;
|
||||
type = lib.types.bool;
|
||||
description = lib.mdDoc ''
|
||||
Whether the ISO image should be compressed using
|
||||
{command}`zstd`.
|
||||
@ -479,15 +482,16 @@ in
|
||||
+ 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.
|
||||
@ -497,6 +501,7 @@ in
|
||||
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
|
||||
@ -527,6 +532,7 @@ in
|
||||
|
||||
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
|
||||
@ -538,6 +544,7 @@ in
|
||||
|
||||
isoImage.makeBiosBootable = mkOption {
|
||||
default = false;
|
||||
type = lib.types.bool;
|
||||
description = lib.mdDoc ''
|
||||
Whether the ISO image should be a BIOS-bootable disk.
|
||||
'';
|
||||
@ -545,6 +552,7 @@ in
|
||||
|
||||
isoImage.makeEfiBootable = mkOption {
|
||||
default = false;
|
||||
type = lib.types.bool;
|
||||
description = lib.mdDoc ''
|
||||
Whether the ISO image should be an EFI-bootable volume.
|
||||
'';
|
||||
@ -552,6 +560,7 @@ in
|
||||
|
||||
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.
|
||||
'';
|
||||
@ -618,6 +627,7 @@ in
|
||||
|
||||
isoImage.prependToMenuLabel = mkOption {
|
||||
default = "";
|
||||
type = types.str;
|
||||
example = "Install ";
|
||||
description = lib.mdDoc ''
|
||||
The string to prepend before the menu label for the NixOS system.
|
||||
@ -630,6 +640,7 @@ in
|
||||
|
||||
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.
|
||||
|
Loading…
Reference in New Issue
Block a user