mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
nixos/tests/bees: Use autoFormat
This commit is contained in:
parent
ec44a39a38
commit
35bbf24122
1 changed files with 13 additions and 9 deletions
|
|
@ -5,29 +5,33 @@
|
|||
nodes.machine =
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
boot.initrd.postDeviceCommands = ''
|
||||
${pkgs.btrfs-progs}/bin/mkfs.btrfs -f -L aux1 /dev/vdb
|
||||
${pkgs.btrfs-progs}/bin/mkfs.btrfs -f -L aux2 /dev/vdc
|
||||
'';
|
||||
virtualisation.emptyDiskImages = [
|
||||
4096
|
||||
4096
|
||||
{
|
||||
size = 4096;
|
||||
driveConfig.deviceExtraOpts.serial = "aux1";
|
||||
}
|
||||
{
|
||||
size = 4096;
|
||||
driveConfig.deviceExtraOpts.serial = "aux2";
|
||||
}
|
||||
];
|
||||
virtualisation.fileSystems = {
|
||||
"/aux1" = {
|
||||
# filesystem configured to be deduplicated
|
||||
device = "/dev/disk/by-label/aux1";
|
||||
device = "/dev/disk/by-id/virtio-aux1";
|
||||
fsType = "btrfs";
|
||||
autoFormat = true;
|
||||
};
|
||||
"/aux2" = {
|
||||
# filesystem not configured to be deduplicated
|
||||
device = "/dev/disk/by-label/aux2";
|
||||
device = "/dev/disk/by-id/virtio-aux2";
|
||||
fsType = "btrfs";
|
||||
autoFormat = true;
|
||||
};
|
||||
};
|
||||
services.beesd.filesystems = {
|
||||
aux1 = {
|
||||
spec = "LABEL=aux1";
|
||||
spec = "/dev/disk/by-id/virtio-aux1";
|
||||
hashTableSizeMB = 16;
|
||||
verbosity = "debug";
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue