Replace ntp with timesyncd and enable it on all systems

This commit is contained in:
Andreas Zweili 2022-11-12 16:30:41 +01:00
parent 5f58deee85
commit 03f891b4f5
3 changed files with 6 additions and 10 deletions

View File

@ -12,6 +12,7 @@
# Set your time zone.
time.timeZone = "Europe/Zurich";
services.timesyncd.enable = true;
networking = {
domain = "2li.local";
@ -20,6 +21,11 @@
allowPing = true;
allowedTCPPorts = [ 22 ];
};
timeServers = [
"10.7.89.1"
"ch.pool.ntp.org"
];
};
hardware = {

View File

@ -1,9 +0,0 @@
{ ... }:
{
services.ntp = {
enable = true;
servers = [
"10.7.89.1"
];
};
}

View File

@ -3,7 +3,6 @@
imports = [
custom.inputs.nixos-hardware.nixosModules.raspberry-pi-4
"${custom.inputs.self}/modules/log-to-ram"
"${custom.inputs.self}/modules/ntp"
"${custom.inputs.self}/modules/syslog"
];