From c12489d83818f461ec63632ccda36522637be5ee Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Sat, 22 Oct 2022 19:37:45 +0200 Subject: [PATCH] tests, example: avoid lengthy documentation build This options manual rebuild takes 30-60s and is triggered by the extra NixOS options defined by nix-bitcoin. --- examples/qemu-vm/minimal-vm.nix | 3 +++ test/lib/make-test.nix | 3 +++ 2 files changed, 6 insertions(+) diff --git a/examples/qemu-vm/minimal-vm.nix b/examples/qemu-vm/minimal-vm.nix index c04f27e..8fb86ca 100644 --- a/examples/qemu-vm/minimal-vm.nix +++ b/examples/qemu-vm/minimal-vm.nix @@ -29,6 +29,9 @@ rec { # For faster startup in offline VMs services.clightning.extraConfig = "disable-dns"; + # Avoid lengthy build of the nixos manual + documentation.nixos.enable = false; + nixpkgs.pkgs = pkgs; services.getty.autologinUser = "root"; nix.nixPath = [ "nixpkgs=${nixpkgs}" ]; diff --git a/test/lib/make-test.nix b/test/lib/make-test.nix index e25c69c..be8c652 100644 --- a/test/lib/make-test.nix +++ b/test/lib/make-test.nix @@ -94,6 +94,9 @@ name: testConfig: virtualisation.graphics = false; services.getty.autologinUser = "root"; + # Avoid lengthy build of the nixos manual + documentation.nixos.enable = false; + # Provide a shortcut for instant poweroff from within the machine environment.systemPackages = with pkgs; [ (lowPrio (writeScriptBin "q" ''