diff options
author | Daniel Peebles <copumpkin@users.noreply.github.com> | 2017-11-29 22:48:00 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-29 22:48:00 -0500 |
commit | 5fd528d043636bc8b41577b91ada2ac25bbe7ae4 (patch) | |
tree | 99bd54c85f5009db26122de27bf15b168895f2ad /nixos/modules/virtualisation | |
parent | 9a4cd4033791d27c5d09b5af173843008310850a (diff) | |
download | nixlib-5fd528d043636bc8b41577b91ada2ac25bbe7ae4.tar nixlib-5fd528d043636bc8b41577b91ada2ac25bbe7ae4.tar.gz nixlib-5fd528d043636bc8b41577b91ada2ac25bbe7ae4.tar.bz2 nixlib-5fd528d043636bc8b41577b91ada2ac25bbe7ae4.tar.lz nixlib-5fd528d043636bc8b41577b91ada2ac25bbe7ae4.tar.xz nixlib-5fd528d043636bc8b41577b91ada2ac25bbe7ae4.tar.zst nixlib-5fd528d043636bc8b41577b91ada2ac25bbe7ae4.zip |
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
Diffstat (limited to 'nixos/modules/virtualisation')
-rw-r--r-- | nixos/modules/virtualisation/amazon-image.nix | 3 |
1 files changed, 3 insertions, 0 deletions
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" ]; }; } |