mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
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.
This commit is contained in:
parent
f2204986a7
commit
0aad0248ce
4 changed files with 33 additions and 25 deletions
|
@ -0,0 +1,14 @@
|
|||
{ 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
Normal file
5
nixos/modules/installer/cd-dvd/latest-kernel.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{ lib, pkgs, ... }:
|
||||
{
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
boot.supportedFilesystems.zfs = false;
|
||||
}
|
|
@ -48,14 +48,19 @@
|
|||
];
|
||||
|
||||
# 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";
|
||||
|
|
|
@ -164,7 +164,7 @@ in rec {
|
|||
});
|
||||
|
||||
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;
|
||||
});
|
||||
|
@ -187,22 +187,6 @@ in rec {
|
|||
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;
|
||||
});
|
||||
|
||||
sd_image = forMatchingSystems [ "armv6l-linux" "armv7l-linux" "aarch64-linux" ] (system: makeSdImage {
|
||||
module = {
|
||||
armv6l-linux = ./modules/installer/sd-card/sd-image-raspberrypi-installer.nix;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue