about summary refs log tree commit diff
path: root/third_party/nix/test-vm.nix
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/nix/test-vm.nix')
-rw-r--r--third_party/nix/test-vm.nix19
1 files changed, 19 insertions, 0 deletions
diff --git a/third_party/nix/test-vm.nix b/third_party/nix/test-vm.nix
new file mode 100644
index 000000000000..e5f8690fcb2d
--- /dev/null
+++ b/third_party/nix/test-vm.nix
@@ -0,0 +1,19 @@
+{ depot, pkgs, ... }:
+
+let
+  configuration = { ... }: {
+    imports = [
+      "${pkgs.path}/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix"
+    ];
+
+    nix.package = depot.third_party.nix;
+
+    virtualisation.qemu.options = [ "-nographic" "-curses" ];
+
+    nix.nixPath = [
+      "depot=${depot.path}"
+    ];
+  };
+
+  system = depot.third_party.nixos { inherit configuration; };
+in system.vm