lib/make-test: fix system.stateVersion
warning
This commit is contained in:
parent
14722d2c0d
commit
f02f27cbca
@ -64,7 +64,7 @@ name: testConfig:
|
|||||||
|
|
||||||
# This allows running a test scenario in a regular NixOS VM.
|
# This allows running a test scenario in a regular NixOS VM.
|
||||||
# No tests are executed.
|
# No tests are executed.
|
||||||
vmWithoutTests = (pkgs.nixos {
|
vmWithoutTests = (pkgs.nixos ({ config, ... }: {
|
||||||
imports = [
|
imports = [
|
||||||
testConfig
|
testConfig
|
||||||
"${toString pkgs.path}/nixos/modules/virtualisation/qemu-vm.nix"
|
"${toString pkgs.path}/nixos/modules/virtualisation/qemu-vm.nix"
|
||||||
@ -78,7 +78,9 @@ name: testConfig:
|
|||||||
echo o >/proc/sysrq-trigger
|
echo o >/proc/sysrq-trigger
|
||||||
''))
|
''))
|
||||||
];
|
];
|
||||||
}).vm;
|
|
||||||
|
system.stateVersion = config.system.nixos.release;
|
||||||
|
})).config.system.build.vm;
|
||||||
|
|
||||||
config = testConfig;
|
config = testConfig;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user