mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 21:21:06 +00:00
24 lines
455 B
Nix
24 lines
455 B
Nix
|
import ./make-test.nix ({ ... }:
|
||
|
|
||
|
{
|
||
|
name = "pam-u2f";
|
||
|
|
||
|
machine =
|
||
|
{ ... }:
|
||
|
{
|
||
|
security.pam.u2f = {
|
||
|
control = "required";
|
||
|
cue = true;
|
||
|
debug = true;
|
||
|
enable = true;
|
||
|
interactive = true;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
testScript =
|
||
|
''
|
||
|
$machine->waitForUnit('multi-user.target');
|
||
|
$machine->succeed('egrep "auth required .*/lib/security/pam_u2f.so.*debug.*interactive.*cue" /etc/pam.d/ -R');
|
||
|
'';
|
||
|
})
|