nixos/iso-image: Include latest kernel specialisation.

Now that ISOs include the latest kernel as a specialisation, separate
ISOs for the new kernel are no longer necessary.

Changed files
+33 -25
nixos
+14
nixos/modules/installer/cd-dvd/installation-cd-minimal-combined.nix
···
+
{ lib, ... }:
+
+
{
+
imports = [ ./installation-cd-minimal.nix ];
+
+
isoImage.configurationName = lib.mkDefault "(Linux LTS)";
+
+
specialisation.latest_kernel.configuration =
+
{ config, ... }:
+
{
+
imports = [ ./latest-kernel.nix ];
+
isoImage.configurationName = "(Linux ${config.boot.kernelPackages.kernel.version})";
+
};
+
}
+5
nixos/modules/installer/cd-dvd/latest-kernel.nix
···
+
{ lib, pkgs, ... }:
+
{
+
boot.kernelPackages = pkgs.linuxPackages_latest;
+
boot.supportedFilesystems.zfs = false;
+
}
+13 -8
nixos/modules/profiles/base.nix
···
];
# Include support for various filesystems and tools to create / manipulate them.
-
boot.supportedFilesystems = [
-
"btrfs"
-
"cifs"
-
"f2fs"
-
"ntfs"
-
"vfat"
-
"xfs"
-
] ++ lib.optional (lib.meta.availableOn pkgs.stdenv.hostPlatform config.boot.zfs.package) "zfs";
+
boot.supportedFilesystems = lib.mkMerge [
+
[
+
"btrfs"
+
"cifs"
+
"f2fs"
+
"ntfs"
+
"vfat"
+
"xfs"
+
]
+
(lib.mkIf (lib.meta.availableOn pkgs.stdenv.hostPlatform config.boot.zfs.package) {
+
zfs = lib.mkDefault true;
+
})
+
];
# Configure host id for ZFS to work
networking.hostId = lib.mkDefault "8425e349";
+1 -17
nixos/release.nix
···
});
iso_minimal = forAllSystems (system: makeIso {
-
module = ./modules/installer/cd-dvd/installation-cd-minimal.nix;
+
module = ./modules/installer/cd-dvd/installation-cd-minimal-combined.nix;
type = "minimal";
inherit system;
});
···
iso_gnome = forMatchingSystems supportedSystems (system: makeIso {
module = ./modules/installer/cd-dvd/installation-cd-graphical-calamares-gnome.nix;
type = "gnome";
-
inherit system;
-
});
-
-
# A variant with a more recent (but possibly less stable) kernel that might support more hardware.
-
# This variant keeps zfs support enabled, hoping it will build and work.
-
iso_minimal_new_kernel = forMatchingSystems [ "x86_64-linux" "aarch64-linux" ] (system: makeIso {
-
module = ./modules/installer/cd-dvd/installation-cd-minimal-new-kernel.nix;
-
type = "minimal-new-kernel";
-
inherit system;
-
});
-
-
# A variant with a more recent (but possibly less stable) kernel that might support more hardware.
-
# ZFS support disabled since it is unlikely to support the latest kernel.
-
iso_minimal_new_kernel_no_zfs = forMatchingSystems [ "x86_64-linux" "aarch64-linux" ] (system: makeIso {
-
module = ./modules/installer/cd-dvd/installation-cd-minimal-new-kernel-no-zfs.nix;
-
type = "minimal-new-kernel-no-zfs";
inherit system;
});