nixos/tests/systemd: pkgs.systemd -> nodes.machine.systemd.package

This makes it easier to tests changes from staging without having to
rebuild the whole world and instead just supplying a new systemd package
via the module system.
This commit is contained in:
nikstur 2026-02-18 17:13:38 +01:00
commit e0e1338ba4

View file

@ -109,10 +109,10 @@
machine.wait_for_unit("first-boot-complete.target")
machine.succeed(
"journalctl --system -o cat --grep 'systemd ${lib.escapeRegex pkgs.systemd.version} running'"
"journalctl --system -o cat --grep 'systemd ${lib.escapeRegex nodes.machine.systemd.package.version} running'"
)
assert "systemd ${lib.versions.major pkgs.systemd.version} (${pkgs.systemd.version})" in machine.succeed(
assert "systemd ${lib.versions.major nodes.machine.systemd.package.version} (${nodes.machine.systemd.package.version})" in machine.succeed(
"systemctl --version"
)