From 9d30d76b18db6282c668054df12d9d651ccd8e5d Mon Sep 17 00:00:00 2001 From: Jack O'Sullivan Date: Mon, 13 Nov 2023 22:00:02 +0000 Subject: [PATCH] nixos/colony: Add media disk to darts VM --- nixos/boxes/colony/vms/default.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/nixos/boxes/colony/vms/default.nix b/nixos/boxes/colony/vms/default.nix index c7566b5..6df91c9 100644 --- a/nixos/boxes/colony/vms/default.nix +++ b/nixos/boxes/colony/vms/default.nix @@ -247,6 +247,19 @@ cleanShutdown.timeout = 120; drives = [ (mkMerge [ (vmLVM "darts" "root") { frontendOpts.bootindex = 0; } ]) + { + name = "media"; + backend = { + driver = "host_device"; + filename = "/dev/main/darts-media"; + discard = "unmap"; + }; + format = { + driver = "raw"; + discard = "unmap"; + }; + frontend = "virtio-blk"; + } ]; }; };