From f02f27cbcacfa23d9d3c8ab3125078248a8d202e Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Tue, 5 Jul 2022 10:12:54 +0200 Subject: [PATCH] lib/make-test: fix `system.stateVersion` warning --- test/lib/make-test.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/lib/make-test.nix b/test/lib/make-test.nix index 36782e7..6bd52be 100644 --- a/test/lib/make-test.nix +++ b/test/lib/make-test.nix @@ -64,7 +64,7 @@ name: testConfig: # This allows running a test scenario in a regular NixOS VM. # No tests are executed. - vmWithoutTests = (pkgs.nixos { + vmWithoutTests = (pkgs.nixos ({ config, ... }: { imports = [ testConfig "${toString pkgs.path}/nixos/modules/virtualisation/qemu-vm.nix" @@ -78,7 +78,9 @@ name: testConfig: echo o >/proc/sysrq-trigger '')) ]; - }).vm; + + system.stateVersion = config.system.nixos.release; + })).config.system.build.vm; config = testConfig; }