Home: Add ntp server.
This commit is contained in:
parent
18bc5f6ddf
commit
65763646da
|
@ -110,6 +110,7 @@ in
|
|||
};
|
||||
dhcpServerConfig = {
|
||||
DNS = internal;
|
||||
NTP = internal;
|
||||
DefaultLeaseTimeSec = "12h";
|
||||
EmitDNS = true;
|
||||
EmitNTP = true;
|
||||
|
|
9
host/x86_64-linux/home/OpenNtpd.nix
Normal file
9
host/x86_64-linux/home/OpenNtpd.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{ ... }: {
|
||||
services.openntpd = {
|
||||
enable = true;
|
||||
extraConfig = ''
|
||||
listen on 0.0.0.0
|
||||
listen on ::
|
||||
'';
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue