mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-16 06:47:09 +03:00
26 lines
476 B
Nix
26 lines
476 B
Nix
import ./make-test-python.nix ({ ... }:
|
|
|
|
{
|
|
name = "pam-u2f";
|
|
|
|
machine =
|
|
{ ... }:
|
|
{
|
|
security.pam.u2f = {
|
|
control = "required";
|
|
cue = true;
|
|
debug = true;
|
|
enable = true;
|
|
interactive = true;
|
|
};
|
|
};
|
|
|
|
testScript =
|
|
''
|
|
machine.wait_for_unit("multi-user.target")
|
|
machine.succeed(
|
|
'egrep "auth required .*/lib/security/pam_u2f.so.*debug.*interactive.*cue" /etc/pam.d/ -R'
|
|
)
|
|
'';
|
|
})
|