at 23.11-pre 834 B view raw
1# A module containing the base imports and overrides that 2# are always applied in NixOS VM tests, unconditionally, 3# even in `inheritParentConfig = false` specialisations. 4{ lib, ... }: 5let 6 inherit (lib) mkForce; 7in 8{ 9 imports = [ 10 ../../modules/virtualisation/qemu-vm.nix 11 ../../modules/testing/test-instrumentation.nix # !!! should only get added for automated test runs 12 { key = "no-manual"; documentation.nixos.enable = false; } 13 { 14 key = "no-revision"; 15 # Make the revision metadata constant, in order to avoid needless retesting. 16 # The human version (e.g. 21.05-pre) is left as is, because it is useful 17 # for external modules that test with e.g. testers.nixosTest and rely on that 18 # version number. 19 config.system.nixos.revision = mkForce "constant-nixos-revision"; 20 } 21 22 ]; 23}