mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-17 16:40:12 +00:00
* Put "minimal" or "graphical" in the ISO name to distinguish between
the files. svn path=/nixos/trunk/; revision=26901
This commit is contained in:
parent
76d3721a53
commit
ee3269cbbd
|
@ -39,7 +39,7 @@ in
|
|||
];
|
||||
|
||||
# ISO naming.
|
||||
isoImage.isoName = "nixos-${config.system.nixosVersion}-${pkgs.stdenv.system}.iso";
|
||||
isoImage.isoName = "${config.isoImage.isoBaseName}-${config.system.nixosVersion}-${pkgs.stdenv.system}.iso";
|
||||
|
||||
isoImage.volumeID = "NIXOS_INSTALL_CD_${config.system.nixosVersion}";
|
||||
|
||||
|
|
|
@ -11,12 +11,19 @@ let
|
|||
options = {
|
||||
|
||||
isoImage.isoName = mkOption {
|
||||
default = "cd.iso";
|
||||
default = "${config.isoImage.isoName}.iso";
|
||||
description = ''
|
||||
Name of the generated ISO image file.
|
||||
'';
|
||||
};
|
||||
|
||||
isoImage.isoBaseName = mkOption {
|
||||
default = "nixos";
|
||||
description = ''
|
||||
Prefix of the name of the generated ISO image file.
|
||||
'';
|
||||
};
|
||||
|
||||
isoImage.compressImage = mkOption {
|
||||
default = false;
|
||||
description = ''
|
||||
|
|
11
release.nix
11
release.nix
|
@ -4,7 +4,7 @@ let
|
|||
|
||||
|
||||
makeIso =
|
||||
{ module, description, maintainers ? ["eelco"]}:
|
||||
{ module, type, description ? type, maintainers ? ["eelco"] }:
|
||||
{ nixosSrc ? {outPath = ./.; rev = 1234;}
|
||||
, officialRelease ? false
|
||||
, system ? "i686-linux"
|
||||
|
@ -16,7 +16,10 @@ let
|
|||
|
||||
version = builtins.readFile ./VERSION + (if officialRelease then "" else "pre${toString nixosSrc.rev}");
|
||||
|
||||
versionModule = { system.nixosVersion = version; };
|
||||
versionModule =
|
||||
{ system.nixosVersion = version;
|
||||
isoImage.isoBaseName = "nixos-${type}";
|
||||
};
|
||||
|
||||
config = (import lib/eval-config.nix {
|
||||
inherit system nixpkgs;
|
||||
|
@ -119,12 +122,12 @@ let
|
|||
|
||||
iso_minimal = makeIso {
|
||||
module = ./modules/installer/cd-dvd/installation-cd-minimal.nix;
|
||||
description = "minimal";
|
||||
type = "minimal";
|
||||
};
|
||||
|
||||
iso_graphical = makeIso {
|
||||
module = ./modules/installer/cd-dvd/installation-cd-graphical.nix;
|
||||
description = "graphical";
|
||||
type = "graphical";
|
||||
};
|
||||
|
||||
# Provide a tarball that can be unpacked into an SD card, and easily
|
||||
|
|
Loading…
Reference in a new issue