From 0b162c3dbc43d663d20b5b3c72f95bb96420aba0 Mon Sep 17 00:00:00 2001 From: phaer Date: Wed, 8 Jan 2025 13:59:51 +0100 Subject: [PATCH] iso-image: fix output filename While switching from isoImage.baseName to the unified image.baseName, I accidentaly dropped label and system information from the iso filename. This fixes it by including isoImage.edition in the default baseName for all our isos. Resulting in filenames such as `nixos-minimal-25.05beta708350.1d95cb5-x86_64-linux.iso` again instead of just nixos-minimal.iso. --- nixos/modules/installer/cd-dvd/iso-image.nix | 1 + nixos/release.nix | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/nixos/modules/installer/cd-dvd/iso-image.nix b/nixos/modules/installer/cd-dvd/iso-image.nix index 6a320b8cc4a3..5a700f070b62 100644 --- a/nixos/modules/installer/cd-dvd/iso-image.nix +++ b/nixos/modules/installer/cd-dvd/iso-image.nix @@ -870,6 +870,7 @@ in # Create the ISO image. image.extension = if config.isoImage.compressImage then "iso.zst" else "iso"; image.filePath = "iso/${config.image.fileName}"; + image.baseName = "nixos${lib.optionalString (config.isoImage.edition != "") "-${config.isoImage.edition}" }-${config.system.nixos.label}-${pkgs.stdenv.hostPlatform.system}"; system.build.image = config.system.build.isoImage; system.build.isoImage = pkgs.callPackage ../../../lib/make-iso9660-image.nix ({ inherit (config.isoImage) compressImage volumeID contents; diff --git a/nixos/release.nix b/nixos/release.nix index 69abef4b982d..7c843173ecc4 100644 --- a/nixos/release.nix +++ b/nixos/release.nix @@ -61,9 +61,7 @@ let hydraJob ((import lib/eval-config.nix { inherit system; - modules = makeModules module { - image.baseName = "nixos-${type}"; - }; + modules = makeModules module { }; }).config.system.build.isoImage);