summary refs log tree commit diff
path: root/nixos/modules/installer/cd-dvd
diff options
context:
space:
mode:
authorSamuel Dionne-Riel <samuel@dionne-riel.com>2022-12-27 16:14:16 -0500
committerGitHub <noreply@github.com>2022-12-27 16:14:16 -0500
commitd5f5ec1628691ba4fbc85b8fca650cac19ea8003 (patch)
tree8a430be2d7bd92056e11b8715f8c0a3ec4355de4 /nixos/modules/installer/cd-dvd
parent1db407ab61afbc4e071ba812f270822af573a0f4 (diff)
parentd91e1f98fa83fecf614111b3bfde9bf2b3c3aa3d (diff)
downloadnixpkgs-d5f5ec1628691ba4fbc85b8fca650cac19ea8003.tar
nixpkgs-d5f5ec1628691ba4fbc85b8fca650cac19ea8003.tar.gz
nixpkgs-d5f5ec1628691ba4fbc85b8fca650cac19ea8003.tar.bz2
nixpkgs-d5f5ec1628691ba4fbc85b8fca650cac19ea8003.tar.lz
nixpkgs-d5f5ec1628691ba4fbc85b8fca650cac19ea8003.tar.xz
nixpkgs-d5f5ec1628691ba4fbc85b8fca650cac19ea8003.tar.zst
nixpkgs-d5f5ec1628691ba4fbc85b8fca650cac19ea8003.zip
Merge pull request #207371 from samueldr/feature/new_kernel-no-zfs
nixos: Add new_kernel_no_zfs image variants
Diffstat (limited to 'nixos/modules/installer/cd-dvd')
-rw-r--r--nixos/modules/installer/cd-dvd/installation-cd-minimal-new-kernel-no-zfs.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/nixos/modules/installer/cd-dvd/installation-cd-minimal-new-kernel-no-zfs.nix b/nixos/modules/installer/cd-dvd/installation-cd-minimal-new-kernel-no-zfs.nix
new file mode 100644
index 00000000000..9d09cdbe020
--- /dev/null
+++ b/nixos/modules/installer/cd-dvd/installation-cd-minimal-new-kernel-no-zfs.nix
@@ -0,0 +1,15 @@
+{ pkgs, ... }:
+
+{
+  imports = [ ./installation-cd-minimal-new-kernel.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 = [];
+    });
+  })];
+}