mirror of
https://github.com/nix-community/disko
synced 2024-11-10 06:14:14 +00:00
ff5127ea0a
Originally this was manually applied with; ```sh nixpkgs-fmt **.nix && statix fix ``` but I overlooked the fact that `**.nix` would only expand to files in the root (I should have used `**/*.nix`). Previous commit adds `nix fmt` support which passes `.` to `nixpkgs-fmt` (if no other path is explicitly specified when running `nix fmt`). This commit includes the changes made by running `nix fmt`.
26 lines
781 B
Nix
26 lines
781 B
Nix
{ pkgs ? (import <nixpkgs> { })
|
|
, makeDiskoTest ? (pkgs.callPackage ./lib.nix { }).makeDiskoTest
|
|
}:
|
|
let
|
|
linux-bcachefs = pkgs.callPackage ../linux-testing-bcachefs.nix { };
|
|
in
|
|
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 = [ ];
|
|
});
|
|
})
|
|
];
|
|
boot.kernelPackages = pkgs.lib.mkForce (pkgs.recurseIntoAttrs (pkgs.linuxPackagesFor linux-bcachefs));
|
|
};
|
|
}
|