disko/tests/bcachefs.nix

27 lines
781 B
Nix
Raw Normal View History

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 { };
2023-01-23 12:49:01 +03:00
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: {
zfs = super.zfs.overrideAttrs (_: {
meta.platforms = [ ];
});
})
];
2023-01-23 12:49:01 +03:00
boot.kernelPackages = pkgs.lib.mkForce (pkgs.recurseIntoAttrs (pkgs.linuxPackagesFor linux-bcachefs));
2022-12-29 20:46:31 +03:00
};
}