SV-268151r1131103_rule
V-268151
SRG-OS-000356-GPOS-00144
ANIX-00-001440
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.enable = true;
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 timesyncd.enable /etc/nixos/
services.timesyncd.enable = true;
If "services.timesyncd.enable" is not set to "true", is commented out, or is missing, this is a finding.
V-268151
False
ANIX-00-001440
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 timesyncd.enable /etc/nixos/
services.timesyncd.enable = true;
If "services.timesyncd.enable" is not set to "true", is commented out, or is missing, this is a finding.
M
5658