Skip to content

loginDefs

security.loginDefs.chfnRestrict

Use chfn SUID to allow non-root users to change their account GECOS information.

Type: null or string

Default

null

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/programs/shadow.nix

security.loginDefs.package

The shadow package to use. Type: package

Default

pkgs.shadow

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/programs/shadow.nix

security.loginDefs.settings

Config options for the /etc/login.defs file, that defines the site-specific configuration for the shadow password suite. See login.defs(5) man page for available options.

Type: attribute set of (atom (null, bool, int, float or string))

Default

{ }

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/programs/shadow.nix

security.loginDefs.settings.DEFAULT_HOME

Indicate if login is allowed if we can't cd to the home directory. Type: one of "yes", "no"

Default

"yes"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/programs/shadow.nix

security.loginDefs.settings.ENCRYPT_METHOD

This defines the system default encryption algorithm for encrypting passwords. Type: one of "YESCRYPT", "SHA512", "SHA256", "MD5", "DES"

Default

"YESCRYPT"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/programs/shadow.nix

security.loginDefs.settings.GID_MAX

Range of group IDs used for the creation of regular groups by useradd, groupadd, or newusers. Type: signed integer

Default

29999

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/programs/shadow.nix

security.loginDefs.settings.GID_MIN

Range of group IDs used for the creation of regular groups by useradd, groupadd, or newusers. Type: signed integer

Default

1000

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/programs/shadow.nix

security.loginDefs.settings.SYS_GID_MAX

Range of group IDs used for the creation of system groups by useradd, groupadd, or newusers Type: signed integer

Default

999

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/programs/shadow.nix

security.loginDefs.settings.SYS_GID_MIN

Range of group IDs used for the creation of system groups by useradd, groupadd, or newusers Type: signed integer

Default

400

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/programs/shadow.nix

security.loginDefs.settings.SYS_UID_MAX

Range of user IDs used for the creation of system users by useradd or newusers. Type: signed integer

Default

999

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/programs/shadow.nix

security.loginDefs.settings.SYS_UID_MIN

Range of user IDs used for the creation of system users by useradd or newusers. Type: signed integer

Default

400

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/programs/shadow.nix

security.loginDefs.settings.TTYGROUP

The terminal permissions: the login tty will be owned by the TTYGROUP group, and the permissions will be set to TTYPERM Type: string

Default

"tty"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/programs/shadow.nix

security.loginDefs.settings.TTYPERM

The terminal permissions: the login tty will be owned by the TTYGROUP group, and the permissions will be set to TTYPERM Type: string

Default

"0620"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/programs/shadow.nix

security.loginDefs.settings.UID_MAX

Range of user IDs used for the creation of regular users by useradd or newusers. Type: signed integer

Default

29999

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/programs/shadow.nix

security.loginDefs.settings.UID_MIN

Range of user IDs used for the creation of regular users by useradd or newusers. Type: signed integer

Default

1000

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/programs/shadow.nix

security.loginDefs.settings.UMASK

The file mode creation mask is initialized to this value. Type: string

Default

"077"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/programs/shadow.nix