diff options
author | worldofpeace <worldofpeace@protonmail.ch> | 2020-03-27 20:19:05 -0400 |
---|---|---|
committer | worldofpeace <worldofpeace@protonmail.ch> | 2020-03-27 21:30:54 -0400 |
commit | 70a8e9ace9669b9685213e4631879fd2cdd79102 (patch) | |
tree | 2bf17d8ef2526538ccef00b07cb528015145c9e1 /nixos/modules/installer/cd-dvd/iso-image.nix | |
parent | f59aa66fc154e2c9995ed51715ec6e5515f77be4 (diff) | |
download | nixpkgs-70a8e9ace9669b9685213e4631879fd2cdd79102.tar nixpkgs-70a8e9ace9669b9685213e4631879fd2cdd79102.tar.gz nixpkgs-70a8e9ace9669b9685213e4631879fd2cdd79102.tar.bz2 nixpkgs-70a8e9ace9669b9685213e4631879fd2cdd79102.tar.lz nixpkgs-70a8e9ace9669b9685213e4631879fd2cdd79102.tar.xz nixpkgs-70a8e9ace9669b9685213e4631879fd2cdd79102.tar.zst nixpkgs-70a8e9ace9669b9685213e4631879fd2cdd79102.zip |
iso-image: normalize volumeID
The volumeID will now be in the format of: nixos-$EDITON-$RELEASE-$ARCH an example for the minimal image would look like: nixos-minimal-20.09-x86-64-linux
Diffstat (limited to 'nixos/modules/installer/cd-dvd/iso-image.nix')
-rw-r--r-- | nixos/modules/installer/cd-dvd/iso-image.nix | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/nixos/modules/installer/cd-dvd/iso-image.nix b/nixos/modules/installer/cd-dvd/iso-image.nix index 4558b4dc955..58589b6b824 100644 --- a/nixos/modules/installer/cd-dvd/iso-image.nix +++ b/nixos/modules/installer/cd-dvd/iso-image.nix @@ -417,8 +417,17 @@ in ''; }; + isoImage.edition = mkOption { + default = ""; + description = '' + Specifies which edition string to use in the volume ID of the generated + ISO image. + ''; + }; + isoImage.volumeID = mkOption { - default = "NIXOS_BOOT_CD"; + # nixos-$EDITION-$RELEASE-$ARCH + default = "nixos${optionalString (config.isoImage.edition != "") "-${config.isoImage.edition}"}-${config.system.nixos.release}-${pkgs.stdenv.hostPlatform.system}"; description = '' 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 |