From 65763646da30e5357e4a5385f18f41a0549058ec Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Fri, 10 Jan 2025 10:57:50 +0300 Subject: [PATCH] Home: Add ntp server. --- host/x86_64-linux/home/Network.nix | 1 + host/x86_64-linux/home/OpenNtpd.nix | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 host/x86_64-linux/home/OpenNtpd.nix diff --git a/host/x86_64-linux/home/Network.nix b/host/x86_64-linux/home/Network.nix index ab2132c..1189fe1 100644 --- a/host/x86_64-linux/home/Network.nix +++ b/host/x86_64-linux/home/Network.nix @@ -110,6 +110,7 @@ in }; dhcpServerConfig = { DNS = internal; + NTP = internal; DefaultLeaseTimeSec = "12h"; EmitDNS = true; EmitNTP = true; diff --git a/host/x86_64-linux/home/OpenNtpd.nix b/host/x86_64-linux/home/OpenNtpd.nix new file mode 100644 index 0000000..f0ebafe --- /dev/null +++ b/host/x86_64-linux/home/OpenNtpd.nix @@ -0,0 +1,9 @@ +{ ... }: { + services.openntpd = { + enable = true; + extraConfig = '' + listen on 0.0.0.0 + listen on :: + ''; + }; +}