fix(iso): disable broken zfs in the live installer

The installation-CD profile enables zfs so you can install onto it, but
the pinned nixpkgs ships a broken zfs-kernel that fails to evaluate,
breaking `nix flake check` and ISO builds. Force-disable zfs in the ISO
(a desktop installer doesn't need ZFS-root); use the official NixOS ISO
for ZFS installs.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Padreug 2026-06-28 09:54:30 +02:00
commit fa95feb584

23
iso.nix
View file

@ -476,15 +476,20 @@
# Boot configuration for ISO # Boot configuration for ISO
boot = { boot = {
# Support for various filesystems # Explicit filesystem support. zfs is force-disabled: the upstream
supportedFilesystems = [ # installation-CD profile enables it (to allow installing onto ZFS),
"btrfs" # but the pinned nixpkgs ships a broken zfs-kernel that fails to
"ext4" # evaluate. An Omnixient desktop installer doesn't need ZFS-root support,
"xfs" # so we drop it rather than ship a broken/stale module. (Use the
"ntfs" # official NixOS ISO if you need to install onto ZFS.)
"fat32" supportedFilesystems = {
"exfat" btrfs = true;
]; ext4 = true;
xfs = true;
ntfs = true;
exfat = true;
zfs = lib.mkForce false;
};
# Include lots of modules for hardware compatibility # Include lots of modules for hardware compatibility
initrd.availableKernelModules = [ initrd.availableKernelModules = [