Add ntp service

This commit is contained in:
Jakob Lechner 2023-11-22 14:50:10 +00:00
parent a9cd396dec
commit 0f2e97a3fc
No known key found for this signature in database
GPG key ID: 996082EFB5906C10
2 changed files with 14 additions and 0 deletions

View file

@ -7,6 +7,7 @@
./matrix
./navidrome.nix
./nginx.nix
./ntp.nix
./public-ip-tunnel.nix
./radicale.nix
./sturzbach.nix

View file

@ -0,0 +1,13 @@
{ lib, pkgs, ... }:
{
services.chrony = {
enable = true;
extraConfig = ''
allow 192.168.42.0/24
allow 10.20.0.0/22
rtcsync
leapsectz right/UTC
'';
};
networking.firewall.allowedUDPPorts = [ 123 ];
}