summaryrefslogtreecommitdiff
path: root/hosts/surtr
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2021-05-30 10:36:27 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2021-05-30 10:36:27 +0200
commit35060ca71128300658cb8dd0a0009b448f23451b (patch)
tree98b364e7900f5f36dbe5a0a0e1e42d66644e442b /hosts/surtr
parent1f9db37bc5e52a8ed4c008916fc5c248b6985182 (diff)
downloadnixos-35060ca71128300658cb8dd0a0009b448f23451b.tar
nixos-35060ca71128300658cb8dd0a0009b448f23451b.tar.gz
nixos-35060ca71128300658cb8dd0a0009b448f23451b.tar.bz2
nixos-35060ca71128300658cb8dd0a0009b448f23451b.tar.xz
nixos-35060ca71128300658cb8dd0a0009b448f23451b.zip
surtr: sync time from kvm
Diffstat (limited to 'hosts/surtr')
-rw-r--r--hosts/surtr/default.nix11
1 files changed, 11 insertions, 0 deletions
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 @@
28 enableUnstable = true; 28 enableUnstable = true;
29 devNodes = "/dev"; # /dev/vda2 does not show up in /dev/disk/by-id 29 devNodes = "/dev"; # /dev/vda2 does not show up in /dev/disk/by-id
30 }; 30 };
31
32 kernelModules = ["ptp_kvm"];
31 }; 33 };
32 34
33 fileSystems = { 35 fileSystems = {
@@ -79,6 +81,15 @@
79 DNS = [ "46.38.225.230" "46.38.252.230" "2a03:4000:0:1::e1e6" "2a03:4000:8000::fce6" ]; 81 DNS = [ "46.38.225.230" "46.38.252.230" "2a03:4000:0:1::e1e6" "2a03:4000:8000::fce6" ];
80 }; 82 };
81 83
84 services.timesyncd.enable = false;
85 services.chrony = {
86 enable = true;
87 servers = [];
88 extraConfig = ''
89 refclock PHC /dev/ptp_kvm poll 3 dpoll -2 offset 0
90 '';
91 };
92
82 services.openssh = { 93 services.openssh = {
83 enable = true; 94 enable = true;
84 passwordAuthentication = false; 95 passwordAuthentication = false;