From ff16d4597f7d74a1c16f10b680124d25189d41f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=B6gler?= Date: Mon, 1 Apr 2024 20:09:11 +0200 Subject: [PATCH] nixos/test/machinectl: set stateVersion --- nixos/tests/systemd-machinectl.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nixos/tests/systemd-machinectl.nix b/nixos/tests/systemd-machinectl.nix index 78c1e6af42ce..9d761c6d4d8b 100644 --- a/nixos/tests/systemd-machinectl.nix +++ b/nixos/tests/systemd-machinectl.nix @@ -1,7 +1,7 @@ import ./make-test-python.nix ({ pkgs, ... }: let - container = { + container = { config, ... }: { # We re-use the NixOS container option ... boot.isContainer = true; # ... and revert unwanted defaults @@ -15,6 +15,8 @@ let boot.loader.initScript.enable = true; imports = [ ../modules/profiles/minimal.nix ]; + + system.stateVersion = config.system.nixos.version; }; containerSystem = (import ../lib/eval-config.nix {