]>
Commit | Line | Data |
---|---|---|
578e32b3 SW |
1 | # NixOS configuration that allows a nixosTest virtual machine to "nixos-rebuild switch". |
2 | # You'll also need to include the config's system.build.toplevel in system.extraDependencies. | |
3 | ||
4 | { lib, pkgs, modulesPath, ... }: { | |
5 | imports = [ | |
6 | (modulesPath + "/installer/cd-dvd/channel.nix") | |
7 | (modulesPath + "/profiles/base.nix") | |
8 | (modulesPath + "/testing/test-instrumentation.nix") | |
9 | (modulesPath + "/virtualisation/qemu-vm.nix") | |
10 | ]; | |
11 | ||
12 | nix.binaryCaches = lib.mkForce [ ]; | |
13 | nix.extraOptions = '' | |
14 | hashed-mirrors = | |
15 | connect-timeout = 1 | |
16 | ''; | |
17 | ||
18 | system.extraDependencies = with pkgs; [ | |
19 | # List of packages from installer test | |
20 | curl # To diagnose fetch requests | |
21 | desktop-file-utils | |
22 | docbook5 | |
23 | docbook_xsl_ns | |
24 | grub | |
25 | libxml2.bin | |
26 | libxslt.bin | |
27 | nixos-artwork.wallpapers.simple-dark-gray-bottom | |
28 | ntp | |
29 | perlPackages.ListCompare | |
30 | perlPackages.XMLLibXML | |
31 | shared-mime-info | |
32 | stdenvNoCC | |
33 | sudo | |
34 | texinfo | |
35 | unionfs-fuse | |
36 | xorg.lndir | |
37 | ]; | |
38 | ||
39 | # Don't try to install bootloaders in a VM | |
40 | boot.loader.grub.devices = lib.mkForce [ "nodev" ]; | |
41 | } |