flake: VM: add one more disk (/dev/vdc) volume with empty ext4 FS
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
parent
5d01c25f3b
commit
bddc6d1831
12
flake.nix
12
flake.nix
|
@ -40,7 +40,7 @@
|
||||||
|
|
||||||
[testing in NixOS VM]
|
[testing in NixOS VM]
|
||||||
|
|
||||||
nixos-test-driver - run an interactive NixOS VM with all dependencies
|
nixos-test-driver - run an interactive NixOS VM with all dependencies included and 2 disk volumes
|
||||||
pytest-vm - run pytest in an ephemeral NixOS VM with Redis, accepting pytest arguments
|
pytest-vm - run pytest in an ephemeral NixOS VM with Redis, accepting pytest arguments
|
||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
|
@ -115,14 +115,20 @@
|
||||||
pkgs.testers.runNixOSTest {
|
pkgs.testers.runNixOSTest {
|
||||||
name = "default";
|
name = "default";
|
||||||
nodes.machine = { lib, pkgs, ... }: {
|
nodes.machine = { lib, pkgs, ... }: {
|
||||||
# additional disk of size 1024 MiB with empty ext4 FS
|
# 2 additional disks (1024 MiB and 200 MiB) with empty ext4 FS
|
||||||
virtualisation.emptyDiskImages = [ 1024 ];
|
virtualisation.emptyDiskImages = [ 1024 200 ];
|
||||||
virtualisation.fileSystems."/volumes/vdb" = {
|
virtualisation.fileSystems."/volumes/vdb" = {
|
||||||
autoFormat = true;
|
autoFormat = true;
|
||||||
device = "/dev/vdb"; # this name is chosen by QEMU, not here
|
device = "/dev/vdb"; # this name is chosen by QEMU, not here
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
noCheck = true;
|
noCheck = true;
|
||||||
};
|
};
|
||||||
|
virtualisation.fileSystems."/volumes/vdc" = {
|
||||||
|
autoFormat = true;
|
||||||
|
device = "/dev/vdc"; # this name is chosen by QEMU, not here
|
||||||
|
fsType = "ext4";
|
||||||
|
noCheck = true;
|
||||||
|
};
|
||||||
boot.consoleLogLevel = lib.mkForce 3;
|
boot.consoleLogLevel = lib.mkForce 3;
|
||||||
documentation.enable = false;
|
documentation.enable = false;
|
||||||
services.journald.extraConfig = lib.mkForce "";
|
services.journald.extraConfig = lib.mkForce "";
|
||||||
|
|
Loading…
Reference in New Issue