From 35060ca71128300658cb8dd0a0009b448f23451b Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 30 May 2021 10:36:27 +0200 Subject: surtr: sync time from kvm --- hosts/surtr/default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/hosts/surtr/default.nix b/hosts/surtr/default.nix index 34304b44..2d56f6e3 100644 --- a/hosts/surtr/default.nix +++ b/hosts/surtr/default.nix @@ -28,6 +28,8 @@ enableUnstable = true; devNodes = "/dev"; # /dev/vda2 does not show up in /dev/disk/by-id }; + + kernelModules = ["ptp_kvm"]; }; fileSystems = { @@ -79,6 +81,15 @@ DNS = [ "46.38.225.230" "46.38.252.230" "2a03:4000:0:1::e1e6" "2a03:4000:8000::fce6" ]; }; + services.timesyncd.enable = false; + services.chrony = { + enable = true; + servers = []; + extraConfig = '' + refclock PHC /dev/ptp_kvm poll 3 dpoll -2 offset 0 + ''; + }; + services.openssh = { enable = true; passwordAuthentication = false; -- cgit v1.2.3