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 {
|
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 {
|
||||||
|
|
Loading…
Reference in a new issue