Replace ntp with timesyncd and enable it on all systems
This commit is contained in:
parent
5f58deee85
commit
03f891b4f5
|
@ -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 = {
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
{ ... }:
|
||||
{
|
||||
services.ntp = {
|
||||
enable = true;
|
||||
servers = [
|
||||
"10.7.89.1"
|
||||
];
|
||||
};
|
||||
}
|
|
@ -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"
|
||||
];
|
||||
|
||||
|
|
Loading…
Reference in New Issue