3
0
Fork 0
forked from mirrors/nixpkgs

pam: Add system-wide mkhomedir enable

This commit is contained in:
Erin Shepherd 2022-07-10 13:10:46 +00:00
parent 980fbc3dc4
commit b5e1625f14

View file

@ -334,7 +334,8 @@ let
};
makeHomeDir = mkOption {
default = false;
default = config.security.pam.makeHomeDir.enable;
defaultText = literalExpression "config.security.pam.makeHomeDir.enable";
type = types.bool;
description = lib.mdDoc ''
Whether to try to create home directories for users
@ -800,15 +801,26 @@ in
'';
};
security.pam.makeHomeDir.skelDirectory = mkOption {
security.pam.makeHomeDir = {
enable = mkOption {
default = false;
type = types.bool;
description = ''
Enable the <literal>pam_mkhomedir</literal> module for all
authentication stacks by default
'';
};
skelDirectory = mkOption {
type = types.str;
default = "/var/empty";
example = "/etc/skel";
description = lib.mdDoc ''
description = ''
Path to skeleton directory whose contents are copied to home
directories newly created by `pam_mkhomedir`.
directories newly created by <literal>pam_mkhomedir</literal>.
'';
};
};
security.pam.enableSSHAgentAuth = mkOption {
type = types.bool;