diff options
author | Christian Kögler <ck3d@gmx.de> | 2024-04-01 20:09:11 +0200 |
---|---|---|
committer | Christian Kögler <ck3d@gmx.de> | 2024-04-01 20:09:11 +0200 |
commit | ff16d4597f7d74a1c16f10b680124d25189d41f2 (patch) | |
tree | 094f0d8778dabcf2fe24f4f1b59c7026602fe9d9 /nixos/tests/systemd-machinectl.nix | |
parent | 20e50bbb9263092b383fa1ee8e4f856e6b90ebd6 (diff) |
nixos/test/machinectl: set stateVersion
Diffstat (limited to 'nixos/tests/systemd-machinectl.nix')
-rw-r--r-- | nixos/tests/systemd-machinectl.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nixos/tests/systemd-machinectl.nix b/nixos/tests/systemd-machinectl.nix index 78c1e6af42cef..9d761c6d4d8b8 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 { |