mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
nixos/tests/snapper: Use autoFormat
This commit is contained in:
parent
e2e7ac2504
commit
bb51c2d8fe
1 changed files with 8 additions and 6 deletions
|
|
@ -5,16 +5,18 @@
|
|||
nodes.machine =
|
||||
{ pkgs, lib, ... }:
|
||||
{
|
||||
boot.initrd.postDeviceCommands = ''
|
||||
${pkgs.btrfs-progs}/bin/mkfs.btrfs -f -L aux /dev/vdb
|
||||
'';
|
||||
|
||||
virtualisation.emptyDiskImages = [ 4096 ];
|
||||
virtualisation.emptyDiskImages = [
|
||||
{
|
||||
size = 4096;
|
||||
driveConfig.deviceExtraOpts.serial = "aux";
|
||||
}
|
||||
];
|
||||
|
||||
virtualisation.fileSystems = {
|
||||
"/home" = {
|
||||
device = "/dev/disk/by-label/aux";
|
||||
device = "/dev/disk/by-id/virtio-aux";
|
||||
fsType = "btrfs";
|
||||
autoFormat = true;
|
||||
};
|
||||
};
|
||||
services.snapper.configs.home.SUBVOLUME = "/home";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue