1 import ./make-test-python.nix (
5 meta.maintainers = with pkgs.lib.maintainers; [ Madouura ];
10 virtualisation.emptyDiskImages = [ 4096 ];
11 networking.hostId = "deadbeef";
12 boot.supportedFilesystems = [ "bcachefs" ];
13 environment.systemPackages = with pkgs; [
20 machine.succeed("modprobe bcachefs")
21 machine.succeed("bcachefs version")
22 machine.succeed("ls /dev")
27 "parted --script /dev/vdb mklabel msdos",
28 "parted --script /dev/vdb -- mkpart primary 1024M 50% mkpart primary 50% -1s",
30 "echo password | bcachefs format --encrypted --metadata_replicas 2 --label vtest /dev/vdb1 /dev/vdb2",
31 "echo password | bcachefs unlock -k session /dev/vdb1",
32 "echo password | mount -t bcachefs /dev/vdb1:/dev/vdb2 /tmp/mnt",
34 "bcachefs fs usage /tmp/mnt",