about summary refs log tree commit diff
path: root/third_party/nix/test-vm.nix
blob: 550537679c496c8040ca423d4b328260b922b7a1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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.depotPath}"
    ];
  };

  system = depot.third_party.nixos { inherit configuration; };
in system.vm