summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--flake.nix17
1 files changed, 12 insertions, 5 deletions
diff --git a/flake.nix b/flake.nix
index ee980c4..d21c347 100644
--- a/flake.nix
+++ b/flake.nix
@@ -66,11 +66,18 @@
'';
} // lib.genAttrs cfg.services (_name: {
fprintAuth = false;
- rules.auth.pam-any = {
- order = cfg.order;
- control = "sufficient";
- modulePath = "${pam-any}/lib/security/pam_any.so";
- args = [ "${pamAnyConfigFile}" ];
+ rules.auth = {
+ pam-any = {
+ order = cfg.order;
+ control = "required";
+ modulePath = "${pam-any}/lib/security/pam_any.so";
+ args = [ "${pamAnyConfigFile}" ];
+ };
+ # Disable the default unix password auth since pam-any
+ # handles it via the pam-any-password helper service.
+ unix.enable = false;
+ # Keep deny as a safety net (it won't be reached if
+ # pam-any is required and returns success/failure).
};
});
};