refactor: switch from timesyncd to chrony for time synchronization

This commit is contained in:
elwrcl committed 2026-04-11 15:57:41 +03:00
1 parent 7bd47f6702
commit a05f6cb31f
1 file changed
+5 -5
+5 -5
View File
@@ -1,10 +1,7 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
time.timeZone = "Europe/Istanbul"; time.timeZone = "Europe/Istanbul";
i18n.defaultLocale = "en_US.UTF-8"; i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = { i18n.extraLocaleSettings = {
LC_ADDRESS = "tr_TR.UTF-8"; LC_ADDRESS = "tr_TR.UTF-8";
LC_IDENTIFICATION = "tr_TR.UTF-8"; LC_IDENTIFICATION = "tr_TR.UTF-8";
@@ -17,16 +14,19 @@
LC_TIME = "tr_TR.UTF-8"; LC_TIME = "tr_TR.UTF-8";
}; };
services.timesyncd = { services.chrony = {
enable = true; enable = true;
servers = [ servers = [
"0.tr.pool.ntp.org" "0.tr.pool.ntp.org"
"1.tr.pool.ntp.org" "1.tr.pool.ntp.org"
"time.cloudflare.com" "time.cloudflare.com"
]; ];
extraConfig = ''
makestep 1.0 3
rtcsync
'';
}; };
console.keyMap = "trq"; console.keyMap = "trq";
system.stateVersion = "25.05"; system.stateVersion = "25.05";
} }