2022-12-29 17:46:31 +00:00
|
|
|
{ pkgs ? (import <nixpkgs> { })
|
|
|
|
, makeDiskoTest ? (pkgs.callPackage ./lib.nix { }).makeDiskoTest
|
|
|
|
}:
|
|
|
|
makeDiskoTest {
|
2023-02-21 16:19:39 +00:00
|
|
|
name = "bcachefs";
|
2022-12-29 17:46:31 +00:00
|
|
|
disko-config = ../example/bcachefs.nix;
|
|
|
|
extraTestScript = ''
|
|
|
|
machine.succeed("mountpoint /");
|
|
|
|
machine.succeed("lsblk >&2");
|
|
|
|
'';
|
|
|
|
# so that the installer boots with a bcachefs enabled kernel
|
|
|
|
extraConfig = {
|
|
|
|
boot.supportedFilesystems = [ "bcachefs" ];
|
|
|
|
# disable zfs so we can support latest kernel
|
2023-02-07 15:56:08 +00:00
|
|
|
nixpkgs.overlays = [
|
2023-06-06 11:32:47 +00:00
|
|
|
(_final: super: {
|
2023-02-07 15:56:08 +00:00
|
|
|
zfs = super.zfs.overrideAttrs (_: {
|
|
|
|
meta.platforms = [ ];
|
|
|
|
});
|
|
|
|
})
|
|
|
|
];
|
2023-07-04 19:31:08 +00:00
|
|
|
boot.kernelPackages = pkgs.lib.mkForce (pkgs.recurseIntoAttrs pkgs.linuxKernel.packages.linux_testing_bcachefs);
|
2022-12-29 17:46:31 +00:00
|
|
|
};
|
|
|
|
}
|