diff options
author | Samuel Dionne-Riel <samuel@dionne-riel.com> | 2022-12-22 23:07:19 -0500 |
---|---|---|
committer | Samuel Dionne-Riel <samuel@dionne-riel.com> | 2022-12-22 23:07:19 -0500 |
commit | d91e1f98fa83fecf614111b3bfde9bf2b3c3aa3d (patch) | |
tree | 3e87c166eff0de26ba82df9315ee00517d59b338 /nixos/release.nix | |
parent | 35bb28b367312d94815f03d07d5600ecd362fb26 (diff) | |
download | nixpkgs-d91e1f98fa83fecf614111b3bfde9bf2b3c3aa3d.tar nixpkgs-d91e1f98fa83fecf614111b3bfde9bf2b3c3aa3d.tar.gz nixpkgs-d91e1f98fa83fecf614111b3bfde9bf2b3c3aa3d.tar.bz2 nixpkgs-d91e1f98fa83fecf614111b3bfde9bf2b3c3aa3d.tar.lz nixpkgs-d91e1f98fa83fecf614111b3bfde9bf2b3c3aa3d.tar.xz nixpkgs-d91e1f98fa83fecf614111b3bfde9bf2b3c3aa3d.tar.zst nixpkgs-d91e1f98fa83fecf614111b3bfde9bf2b3c3aa3d.zip |
nixos: Add sd_image_minimal_new_kernel_no_zfs
Support for ZFS, while desirable, is problematic with newer kernel releases. The stable ZFS release seldom supports the current newest kernel version, and this makes the new_kernel image basically useless as it cannot be published, and is not often built with new kernel releases. This uses a dirty workaround to work around the fact it is impossible to remove a list item from a modules system list type. Since ZFS support is conditional to being supported on the current platform, we can fake ZFS not being supported *for the no-zfs build only*. This overlay is only added when evaluating the image, nothing else.
Diffstat (limited to 'nixos/release.nix')
-rw-r--r-- | nixos/release.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/nixos/release.nix b/nixos/release.nix index 7907be3c02f..946379bcd66 100644 --- a/nixos/release.nix +++ b/nixos/release.nix @@ -214,6 +214,14 @@ in rec { inherit system; }); + sd_image_new_kernel_no_zfs = forMatchingSystems [ "aarch64-linux" ] (system: makeSdImage { + module = { + aarch64-linux = ./modules/installer/sd-card/sd-image-aarch64-new-kernel-no-zfs-installer.nix; + }.${system}; + type = "minimal-new-kernel-no-zfs"; + inherit system; + }); + # A bootable VirtualBox virtual appliance as an OVA file (i.e. packaged OVF). ova = forMatchingSystems [ "x86_64-linux" ] (system: |