From a14da86f2cfe5038ed84d3db5663c5138839fa97 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Fri, 8 Jul 2022 17:01:41 +0000 Subject: [PATCH] nixosTests.hardened: fix for recent Nix As far as I know, there's no stable equivalent of nix ping-store. --- nixos/tests/hardened.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/tests/hardened.nix b/nixos/tests/hardened.nix index 4e2ca4f273a7..ccb858168547 100644 --- a/nixos/tests/hardened.nix +++ b/nixos/tests/hardened.nix @@ -90,8 +90,8 @@ import ./make-test-python.nix ({ pkgs, ... } : { # Test Nix dæmon usage with subtest("nix-daemon cannot be used by all users"): - machine.fail("su -l nobody -s /bin/sh -c 'nix ping-store'") - machine.succeed("su -l alice -c 'nix ping-store'") + machine.fail("su -l nobody -s /bin/sh -c 'nix --extra-experimental-features nix-command ping-store'") + machine.succeed("su -l alice -c 'nix --extra-experimental-features nix-command ping-store'") # Test kernel image protection