mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-14 18:26:16 +02:00
18 lines
No EOL
399 B
Nix
18 lines
No EOL
399 B
Nix
{
|
|
name = "functional-tests-on-nixos_trusted-user";
|
|
|
|
imports = [ ./common.nix ];
|
|
|
|
nodes.machine = {
|
|
users.users.alice = { isNormalUser = true; };
|
|
nix.settings.trusted-users = [ "alice" ];
|
|
};
|
|
|
|
testScript = ''
|
|
machine.wait_for_unit("multi-user.target")
|
|
machine.succeed("""
|
|
export TEST_TRUSTED_USER=1
|
|
su --login --command "run-test-suite" alice >&2
|
|
""")
|
|
'';
|
|
} |