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