From 5fd528d043636bc8b41577b91ada2ac25bbe7ae4 Mon Sep 17 00:00:00 2001 From: Daniel Peebles Date: Wed, 29 Nov 2017 22:48:00 -0500 Subject: [PATCH] amazon-image: use NTP provided by the hypervisor See http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/set-time.html for more information. Fixes #32187 --- nixos/modules/virtualisation/amazon-image.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nixos/modules/virtualisation/amazon-image.nix b/nixos/modules/virtualisation/amazon-image.nix index 1eb3ca707afd..6cb9e07ae820 100644 --- a/nixos/modules/virtualisation/amazon-image.nix +++ b/nixos/modules/virtualisation/amazon-image.nix @@ -152,5 +152,8 @@ let cfg = config.ec2; in environment.systemPackages = [ pkgs.cryptsetup ]; boot.initrd.supportedFilesystems = [ "unionfs-fuse" ]; + + # EC2 has its own NTP server provided by the hypervisor + networking.timeServers = [ "169.254.169.123" ]; }; }