Skip to content

NixOS must initiate a session lock after a 10-minute period of inactivity for graphical user login.

An XCCDF Rule

Description

A session time-out lock is a temporary action taken when a user stops work and moves away from the immediate physical vicinity of the information system but does not log out because of the temporary nature of the absence. Rather than relying on the user to manually lock their operating system session prior to vacating the vicinity, operating systems need to be able to identify when a user's session has idled and take action to initiate the session lock. The session lock is implemented at the point where session activity can be determined and/or controlled.

ID
SV-268086r1039559_rule
Version
ANIX-00-000110
Severity
Medium
References
Updated

Remediation Templates

A Manual Procedure

Configure NixOS to initiate a session lock after a 10-minute period of inactivity for graphical user login.

Add the following Nix code to the NixOS Configuration, usually located in /etc/nixos/configuration.nix:

programs.dconf.profiles.user.databases = with lib.gvariant; [
     {