diff options
author | Robert Hensing | 2021-05-20 10:40:59 +0200 |
---|---|---|
committer | GitHub | 2021-05-20 10:40:59 +0200 |
commit | 76a7840f5f4fc5998dc5675dd99f69f5b068b574 (patch) | |
tree | a2060ca7fa6587ae5e3b511de474ea390f2df3e9 /nixos/lib | |
parent | 59f9ab3337d7c41a34995e09b937ddb60c03a82e (diff) | |
parent | 169c6b4b1478a3a0c823c99ea39d4082f76a2708 (diff) |
Merge pull request #117275 from hercules-ci/nixosTest-remove-nixpkgs-commit-hash
nixosTest: Make system.nixos.revision constant
Diffstat (limited to 'nixos/lib')
-rw-r--r-- | nixos/lib/build-vms.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/nixos/lib/build-vms.nix b/nixos/lib/build-vms.nix index ebbb0296bef6..064e44f643b2 100644 --- a/nixos/lib/build-vms.nix +++ b/nixos/lib/build-vms.nix @@ -36,6 +36,13 @@ rec { [ ../modules/virtualisation/qemu-vm.nix ../modules/testing/test-instrumentation.nix # !!! should only get added for automated test runs { key = "no-manual"; documentation.nixos.enable = false; } + { key = "no-revision"; + # Make the revision metadata constant, in order to avoid needless retesting. + # The human version (e.g. 21.05-pre) is left as is, because it is useful + # for external modules that test with e.g. nixosTest and rely on that + # version number. + config.system.nixos.revision = "constant-nixos-revision"; + } { key = "nodes"; _module.args.nodes = nodes; } ] ++ optional minimal ../modules/testing/minimal-kernel.nix; }; |