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.
|
# Set your time zone.
|
||||||
time.timeZone = "Europe/Zurich";
|
time.timeZone = "Europe/Zurich";
|
||||||
|
services.timesyncd.enable = true;
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
domain = "2li.local";
|
domain = "2li.local";
|
||||||
|
@ -20,6 +21,11 @@
|
||||||
allowPing = true;
|
allowPing = true;
|
||||||
allowedTCPPorts = [ 22 ];
|
allowedTCPPorts = [ 22 ];
|
||||||
};
|
};
|
||||||
|
timeServers = [
|
||||||
|
"10.7.89.1"
|
||||||
|
"ch.pool.ntp.org"
|
||||||
|
];
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
hardware = {
|
hardware = {
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
{ ... }:
|
|
||||||
{
|
|
||||||
services.ntp = {
|
|
||||||
enable = true;
|
|
||||||
servers = [
|
|
||||||
"10.7.89.1"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -3,7 +3,6 @@
|
||||||
imports = [
|
imports = [
|
||||||
custom.inputs.nixos-hardware.nixosModules.raspberry-pi-4
|
custom.inputs.nixos-hardware.nixosModules.raspberry-pi-4
|
||||||
"${custom.inputs.self}/modules/log-to-ram"
|
"${custom.inputs.self}/modules/log-to-ram"
|
||||||
"${custom.inputs.self}/modules/ntp"
|
|
||||||
"${custom.inputs.self}/modules/syslog"
|
"${custom.inputs.self}/modules/syslog"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user