MyNixOS website logo

Whether to enable swaylock.

Note that PAM must be configured to enable swaylock to perform authentication. The package installed through home-manager will not be able to unlock the session without this configuration.

On NixOS, this is by default enabled with the sway module, but for other compositors it can currently be enabled using:

security.pam.services.swaylock = {};
Declarations
Type
boolean
Default
true  if state version < 23.05 and settings ≠ { },
false otherwise
Example
true