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


                     

                            
                                                                               



                                        
                                                             

                   
                           
      

    
                                                              
            
{ 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