pam: add support for oo7
This commit is contained in:
@@ -678,6 +678,14 @@ let
|
||||
'';
|
||||
};
|
||||
|
||||
oo7 = {
|
||||
enable = lib.mkEnableOption ''
|
||||
automatically unlock the user's default Session Keyring using pam_oo7.
|
||||
If the user's login password does not match their keyring password,
|
||||
oo7 will prompt separately after login.
|
||||
'';
|
||||
};
|
||||
|
||||
enableUMask = lib.mkOption {
|
||||
default = config.security.pam.enableUMask;
|
||||
defaultText = lib.literalExpression "config.security.pam.enableUMask";
|
||||
@@ -1198,6 +1206,7 @@ let
|
||||
|| cfg.pamMount
|
||||
|| cfg.kwallet.enable
|
||||
|| cfg.enableGnomeKeyring
|
||||
|| cfg.oo7.enable
|
||||
|| config.services.intune.enable
|
||||
|| cfg.googleAuthenticator.enable
|
||||
|| cfg.gnupg.enable
|
||||
@@ -1261,6 +1270,12 @@ let
|
||||
control = "optional";
|
||||
modulePath = "${pkgs.gnome-keyring}/lib/security/pam_gnome_keyring.so";
|
||||
}
|
||||
{
|
||||
name = "oo7";
|
||||
enable = cfg.oo7.enable;
|
||||
control = "optional";
|
||||
modulePath = "${pkgs.oo7-pam}/lib/security/pam_oo7.so";
|
||||
}
|
||||
{
|
||||
name = "intune";
|
||||
enable = config.services.intune.enable;
|
||||
@@ -1477,6 +1492,12 @@ let
|
||||
use_authtok = true;
|
||||
};
|
||||
}
|
||||
{
|
||||
name = "oo7";
|
||||
enable = cfg.oo7.enable;
|
||||
control = "optional";
|
||||
modulePath = "${pkgs.oo7-pam}/lib/security/pam_oo7.so";
|
||||
}
|
||||
];
|
||||
|
||||
session = utils.pam.autoOrderRules [
|
||||
@@ -1695,6 +1716,15 @@ let
|
||||
auto_start = true;
|
||||
};
|
||||
}
|
||||
{
|
||||
name = "oo7";
|
||||
enable = cfg.oo7.enable;
|
||||
control = "optional";
|
||||
modulePath = "${pkgs.oo7-pam}/lib/security/pam_oo7.so";
|
||||
settings = {
|
||||
auto_start = true;
|
||||
};
|
||||
}
|
||||
{
|
||||
name = "gnupg";
|
||||
enable = cfg.gnupg.enable;
|
||||
|
||||
Reference in New Issue
Block a user