Add ntp service
This commit is contained in:
parent
a9cd396dec
commit
0f2e97a3fc
2 changed files with 14 additions and 0 deletions
|
|
@ -7,6 +7,7 @@
|
|||
./matrix
|
||||
./navidrome.nix
|
||||
./nginx.nix
|
||||
./ntp.nix
|
||||
./public-ip-tunnel.nix
|
||||
./radicale.nix
|
||||
./sturzbach.nix
|
||||
|
|
|
|||
13
hosts/iron/services/ntp.nix
Normal file
13
hosts/iron/services/ntp.nix
Normal 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 ];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue