forked from mirrors/nixpkgs
pam: Add system-wide mkhomedir enable
This commit is contained in:
parent
980fbc3dc4
commit
b5e1625f14
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue