diff options
author | ners <50560955+ners@users.noreply.github.com> | 2023-04-07 11:30:28 +0200 |
---|---|---|
committer | ners <ners@gmx.ch> | 2023-05-22 13:01:56 +0200 |
commit | afdf7705ade56663b6a16a3546c303decc6f1999 (patch) | |
tree | 0b8c01749b056abbc7c2d10f23218c58735dbd26 /nixos | |
parent | c281a355fef9f01c06816327be230e7c5cd6b699 (diff) | |
download | nixpkgs-afdf7705ade56663b6a16a3546c303decc6f1999.tar nixpkgs-afdf7705ade56663b6a16a3546c303decc6f1999.tar.gz nixpkgs-afdf7705ade56663b6a16a3546c303decc6f1999.tar.bz2 nixpkgs-afdf7705ade56663b6a16a3546c303decc6f1999.tar.lz nixpkgs-afdf7705ade56663b6a16a3546c303decc6f1999.tar.xz nixpkgs-afdf7705ade56663b6a16a3546c303decc6f1999.tar.zst nixpkgs-afdf7705ade56663b6a16a3546c303decc6f1999.zip |
nixos/iso-image: add some types
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/installer/cd-dvd/iso-image.nix | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/nixos/modules/installer/cd-dvd/iso-image.nix b/nixos/modules/installer/cd-dvd/iso-image.nix index 86412ef5307..00b869a7b71 100644 --- a/nixos/modules/installer/cd-dvd/iso-image.nix +++ b/nixos/modules/installer/cd-dvd/iso-image.nix @@ -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. |