mirror of
https://github.com/TECHNOFAB11/disko.git
synced 2025-12-12 16:10:03 +01:00
19 lines
558 B
Nix
19 lines
558 B
Nix
|
|
{ pkgs ? (import <nixpkgs> { })
|
||
|
|
, makeDiskoTest ? (pkgs.callPackage ./lib.nix { }).makeDiskoTest
|
||
|
|
}:
|
||
|
|
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 = [];});}
|
||
|
|
)];
|
||
|
|
};
|
||
|
|
}
|