nixos/modules/profiles/base.nix: omit zfs if unavailable

The `boot.zfs.enabled` option is marked `readOnly`, so this is the only way to
successfully build a NixOS installer image for platforms that zfs does not build
for.

Co-authored-by: Alyssa Ross <hi@alyssa.is>

authored by Adam Joseph Alyssa Ross and committed by Alyssa Ross 4cdda329 fe206915

+3 -1
+3 -1
nixos/modules/profiles/base.nix
··· 51 51 ]; 52 52 53 53 # Include support for various filesystems. 54 - boot.supportedFilesystems = [ "btrfs" "reiserfs" "vfat" "f2fs" "xfs" "zfs" "ntfs" "cifs" ]; 54 + boot.supportedFilesystems = 55 + [ "btrfs" "reiserfs" "vfat" "f2fs" "xfs" "ntfs" "cifs" ] ++ 56 + lib.optional (lib.meta.availableOn pkgs.stdenv.hostPlatform config.boot.zfs.package) "zfs"; 55 57 56 58 # Configure host id for ZFS to work 57 59 networking.hostId = lib.mkDefault "8425e349";