about summary refs log blame commit diff
path: root/third_party/nix/test-vm.nix
blob: 2a1056826852d63dc7c66968c111fedc730b98fe (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                                                                     



                                




                                                 
{ 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