mirror of
https://github.com/nix-community/disko
synced 2024-11-13 23:57:12 +00:00
98ab911097
still waiting for the slow upstream review...
26 lines
866 B
Nix
26 lines
866 B
Nix
{ pkgs ? import <nixpkgs> { }
|
|
, diskoLib ? pkgs.callPackage ../lib { }
|
|
}:
|
|
diskoLib.testLib.makeDiskoTest {
|
|
inherit pkgs;
|
|
name = "bcachefs";
|
|
disko-config = ../example/bcachefs.nix;
|
|
extraTestScript = ''
|
|
machine.succeed("mountpoint /");
|
|
machine.succeed("lsblk >&2");
|
|
'';
|
|
# so that the installer boots with a bcachefs enabled kernel
|
|
extraInstallerConfig = {
|
|
boot.supportedFilesystems = [ "bcachefs" ];
|
|
# disable zfs so we can support latest kernel
|
|
nixpkgs.overlays = [
|
|
(_final: super: {
|
|
zfs = super.zfs.overrideAttrs (_: {
|
|
meta.platforms = [ ];
|
|
});
|
|
})
|
|
];
|
|
boot.kernelPackages = pkgs.lib.mkForce (pkgs.recurseIntoAttrs pkgs.linuxKernel.packages.linux_testing);
|
|
};
|
|
extraSystemConfig.boot.kernelPackages = pkgs.lib.mkForce (pkgs.recurseIntoAttrs pkgs.linuxKernel.packages.linux_testing);
|
|
}
|