1
0

hosts/carbon: Bootstrap chrony ntp server

This commit is contained in:
clerie 2024-08-09 18:02:48 +02:00
parent def2055775
commit 9bc609fbb3
Signed by: clerie
GPG Key ID: BD9F56480870BAD2
3 changed files with 23 additions and 0 deletions

View File

@ -13,6 +13,7 @@
./net-iot.nix
./net-lte.nix
./net-voip.nix
./ntp.nix
./ppp.nix
];

View File

@ -17,6 +17,9 @@
{ address = "10.152.205.1"; prefixLength = 24; }
];
# Enable NTP
networking.firewall.interfaces."net-iot".allowedUDPPorts = [ 123 ];
services.radvd.config = ''
interface net-iot {
AdvSendAdvert on;
@ -53,6 +56,10 @@
name = "domain-name";
data = "iot.clerie.de";
}
{
name = "time-servers";
data = "10.152.0.1";
}
];
}
];

15
hosts/carbon/ntp.nix Normal file
View File

@ -0,0 +1,15 @@
{ ... }:
{
services.chrony = {
enable = true;
extraConfig = ''
# Enable NTP server mode
allow
bindaddress fd00:152:152::1
bindaddress 10.152.0.1
'';
};
}