about summary refs log tree commit diff
path: root/third_party/nix/test-vm.nix
blob: 2a1056826852d63dc7c66968c111fedc730b98fe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ depot, pkgs, ... }:

let

  configuration = { ... }: {
    imports = [
      "${pkgs.nixpkgsSrc}/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix"
    ];

    nix.package = depot.third_party.nix;

    virtualisation.qemu.options = [ "-nographic" ];

    nix.nixPath = [
      "depot=${depot.depotPath}"
    ];
  };

  system = pkgs.nixos { inherit configuration; };

in system.vm