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