about summary refs log tree commit diff
path: root/nixos/tests/pam
diff options
context:
space:
mode:
authorMajiir Paktu <majiir@nabaal.net>2023-09-24 19:55:54 -0400
committerMajiir Paktu <majiir@nabaal.net>2023-10-10 21:11:34 -0400
commit5b8439f9666d3fc6ef3139ce48f4d9b34e1fd525 (patch)
treefa48d8d68998bdb63fa479261ea6a03c44faea43 /nixos/tests/pam
parent6eea7fb19485f7a6138975c7904e1e77a051e481 (diff)
nixos/pam: add settings option for common argument styles
Adds easily overrideable settings for the most common PAM argument
styles. These are:

- Flag (e.g. "use_first_pass"): rendered for true boolean values. false
  values are ignored.

- Key-value (e.g. "action=validate"): rendered for non-null, non-boolean
  values.

Most PAM arguments can be configured this way. Others can still be
configured with the 'args' option.
Diffstat (limited to 'nixos/tests/pam')
-rw-r--r--nixos/tests/pam/pam-u2f.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/tests/pam/pam-u2f.nix b/nixos/tests/pam/pam-u2f.nix
index 07408dea797e4..46e307a3f125a 100644
--- a/nixos/tests/pam/pam-u2f.nix
+++ b/nixos/tests/pam/pam-u2f.nix
@@ -20,7 +20,7 @@ import ../make-test-python.nix ({ ... }:
     ''
       machine.wait_for_unit("multi-user.target")
       machine.succeed(
-          'egrep "auth required .*/lib/security/pam_u2f.so.*debug.*interactive.*cue.*origin=nixos-test" /etc/pam.d/ -R'
+          'egrep "auth required .*/lib/security/pam_u2f.so.*cue.*debug.*interactive.*origin=nixos-test" /etc/pam.d/ -R'
       )
     '';
 })