Home: Add ntp server.

This commit is contained in:
Dmitry Voronin 2025-01-10 10:57:50 +03:00
parent 18bc5f6ddf
commit 65763646da
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
2 changed files with 10 additions and 0 deletions

View file

@ -110,6 +110,7 @@ in
};
dhcpServerConfig = {
DNS = internal;
NTP = internal;
DefaultLeaseTimeSec = "12h";
EmitDNS = true;
EmitNTP = true;

View file

@ -0,0 +1,9 @@
{ ... }: {
services.openntpd = {
enable = true;
extraConfig = ''
listen on 0.0.0.0
listen on ::
'';
};
}