mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 17:14:33 +00:00
d91e1f98fa
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.
16 lines
505 B
Nix
16 lines
505 B
Nix
{ pkgs, ... }:
|
|
|
|
{
|
|
imports = [ ./sd-image-aarch64-new-kernel-installer.nix ];
|
|
|
|
# Makes `availableOn` fail for zfs, see <nixos/modules/profiles/base.nix>.
|
|
# This is a workaround since we cannot remove the `"zfs"` string from `supportedFilesystems`.
|
|
# The proper fix would be to make `supportedFilesystems` an attrset with true/false which we
|
|
# could then `lib.mkForce false`
|
|
nixpkgs.overlays = [(final: super: {
|
|
zfs = super.zfs.overrideAttrs(_: {
|
|
meta.platforms = [];
|
|
});
|
|
})];
|
|
}
|