2022-12-29 20:46:31 +03:00
|
|
|
{ pkgs ? (import <nixpkgs> { })
|
|
|
|
, makeDiskoTest ? (pkgs.callPackage ./lib.nix { }).makeDiskoTest
|
|
|
|
}:
|
2023-01-23 12:49:01 +03:00
|
|
|
let
|
|
|
|
linux-bcachefs = pkgs.callPackage ../linux-testing-bcachefs.nix {};
|
|
|
|
in
|
2022-12-29 20:46:31 +03:00
|
|
|
makeDiskoTest {
|
|
|
|
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
|
|
|
|
nixpkgs.overlays = [(final: super: {
|
2023-01-23 12:49:01 +03:00
|
|
|
zfs = super.zfs.overrideAttrs(_: {
|
|
|
|
meta.platforms = [];
|
|
|
|
});
|
|
|
|
})];
|
|
|
|
boot.kernelPackages = pkgs.lib.mkForce (pkgs.recurseIntoAttrs (pkgs.linuxPackagesFor linux-bcachefs));
|
2022-12-29 20:46:31 +03:00
|
|
|
};
|
|
|
|
}
|