integration-tests: Only enable documentation build in apply test

Otherwise it takes too long :/
This commit is contained in:
Zhaofeng Li 2022-01-27 18:48:25 -08:00
parent 0a955d0a4c
commit 6d5b7d7e3e
2 changed files with 4 additions and 4 deletions

View file

@ -79,6 +79,8 @@ in {
environment.systemPackages = [ testPkg ]; environment.systemPackages = [ testPkg ];
documentation.nixos.enable = lib.mkForce true;
system.activationScripts.colmena-test.text = '' system.activationScripts.colmena-test.text = ''
echo "must appear during activation" echo "must appear during activation"
''; '';

View file

@ -55,8 +55,6 @@ let
]; ];
}; };
documentation.nixos.enable = lib.mkForce true;
services.openssh.enable = true; services.openssh.enable = true;
users.users.root.openssh.authorizedKeys.keys = [ users.users.root.openssh.authorizedKeys.keys = [
sshKeys.snakeOilPublicKey sshKeys.snakeOilPublicKey
@ -79,7 +77,7 @@ let
targetConfig = { lib, ... }: { targetConfig = { lib, ... }: {
nix.binaryCaches = lib.mkForce []; nix.binaryCaches = lib.mkForce [];
documentation.nixos.enable = lib.mkForce true; documentation.nixos.enable = lib.mkOverride 60 true;
services.openssh.enable = true; services.openssh.enable = true;
users.users.root.openssh.authorizedKeys.keys = [ users.users.root.openssh.authorizedKeys.keys = [
@ -105,7 +103,7 @@ let
(modulesPath + "/testing/test-instrumentation.nix") (modulesPath + "/testing/test-instrumentation.nix")
]; ];
documentation.nixos.enable = false; documentation.nixos.enable = lib.mkOverride 55 false;
boot.loader.grub.enable = false; boot.loader.grub.enable = false;
system.nixos.revision = lib.mkForce "constant-nixos-revision"; system.nixos.revision = lib.mkForce "constant-nixos-revision";