SV-268150r1131101_rule
V-268150
SRG-OS-000356-GPOS-00144
ANIX-00-001430
CAT II
10
Configure NixOS to regularly synchronize the system clock.
Add the following Nix code to the NixOS Configuration, usually located in /etc/nixos/configuration.nix or /etc/nixos/flake.nix:
services.timesyncd.extraConfig = ''
PollIntervalMaxSec=60
'';
Rebuild and switch to the new NixOS configuration:
$ sudo nixos-rebuild switch
Verify NixOS synchronizes internal information system clocks to the authoritative time source when the time difference is greater than one second with the following command:
$ grep -iR pollinterval /etc/nixos/
services.timesyncd.extraConfig = "PollIntervalMaxSec=60";
If "PollIntervalMaxSec" is greater than "60", is commented out, or is missing, this is a finding.
V-268150
False
ANIX-00-001430
Verify NixOS synchronizes internal information system clocks to the authoritative time source when the time difference is greater than one second with the following command:
$ grep -iR pollinterval /etc/nixos/
services.timesyncd.extraConfig = "PollIntervalMaxSec=60";
If "PollIntervalMaxSec" is greater than "60", is commented out, or is missing, this is a finding.
M
5658