disko/tests/bcachefs.nix

28 lines
803 B
Nix
Raw Permalink Normal View History

2022-12-29 18:46:31 +01:00
{ pkgs ? (import <nixpkgs> { })
, makeDiskoTest ? (pkgs.callPackage ./lib.nix { }).makeDiskoTest
}:
2023-01-23 10:49:01 +01:00
let
linux-bcachefs = pkgs.callPackage ../linux-testing-bcachefs.nix { };
2023-01-23 10:49:01 +01:00
in
2022-12-29 18:46:31 +01:00
makeDiskoTest {
2023-02-21 11:19:39 -05:00
name = "bcachefs";
2022-12-29 18:46:31 +01: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
nixpkgs.overlays = [
2023-06-06 13:32:47 +02:00
(_final: super: {
zfs = super.zfs.overrideAttrs (_: {
meta.platforms = [ ];
});
})
];
2023-01-23 10:49:01 +01:00
boot.kernelPackages = pkgs.lib.mkForce (pkgs.recurseIntoAttrs (pkgs.linuxPackagesFor linux-bcachefs));
2022-12-29 18:46:31 +01:00
};
}