nixos/tests/snapper: Use autoFormat
This commit is contained in:
@@ -5,16 +5,18 @@
|
|||||||
nodes.machine =
|
nodes.machine =
|
||||||
{ pkgs, lib, ... }:
|
{ pkgs, lib, ... }:
|
||||||
{
|
{
|
||||||
boot.initrd.postDeviceCommands = ''
|
virtualisation.emptyDiskImages = [
|
||||||
${pkgs.btrfs-progs}/bin/mkfs.btrfs -f -L aux /dev/vdb
|
{
|
||||||
'';
|
size = 4096;
|
||||||
|
driveConfig.deviceExtraOpts.serial = "aux";
|
||||||
virtualisation.emptyDiskImages = [ 4096 ];
|
}
|
||||||
|
];
|
||||||
|
|
||||||
virtualisation.fileSystems = {
|
virtualisation.fileSystems = {
|
||||||
"/home" = {
|
"/home" = {
|
||||||
device = "/dev/disk/by-label/aux";
|
device = "/dev/disk/by-id/virtio-aux";
|
||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
|
autoFormat = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
services.snapper.configs.home.SUBVOLUME = "/home";
|
services.snapper.configs.home.SUBVOLUME = "/home";
|
||||||
|
|||||||
Reference in New Issue
Block a user