Unable to change timezone back

Nix config on 24.11 with Plasma 6

# Set your time zone.
  time.timeZone = "America/Los_Angeles";

^^ This is exactly what it should be.

However,
image
is being used instead.

$ sudo timedatectl set-timezone America/Los_Angeles
Failed to set time zone: Changing timezone via systemd is not supported when it is set in NixOS configuration.

$ sudo tzupdate
Error: Timezone “America/Chicago” requested, but this timezone is not available on your operating system.

$ sudo systemctl status systemd-timesyncd.service

$ sudo systemctl status systemd-timesyncd.service
● systemd-timesyncd.service - Network Time Synchronization
Loaded: loaded (/etc/systemd/system/systemd-timesyncd.service; enabled; preset: ignored)
Drop-In: /nix/store/zrcv3a2cls6r326h5ck0k5d5sxy5j5m3-system-units/systemd-timesyncd.service.d
└─overrides.conf
Active: active (running) since Sun 2025-02-23 09:43:19 PST; 11min ago
Invocation: 6395b6c168c44014b34353543caf9fd0
Docs: man:systemd-timesyncd.service(8)
Main PID: 19962 (systemd-timesyn)
Status: “Contacted time server 216.31.17.12:123 (0.nixos.pool.ntp.org).”
IP: 76B in, 76B out
IO: 0B read, 0B written
Tasks: 2 (limit: 38014)
Memory: 1.4M (peak: 2.7M)
CPU: 75ms
CGroup: /system.slice/systemd-timesyncd.service
└─19962 /nix/store/xv7q10lk4lxfax7naj3b63aj2pyjv9gb-systemd-256.10/lib/systemd/systemd-timesyncd

Feb 23 09:44:21 nixos systemd-timesyncd[19962]: Network configuration changed, trying to establish connection.
Feb 23 09:44:21 nixos systemd-timesyncd[19962]: Contacted time server 216.31.17.12:123 (0.nixos.pool.ntp.org).
Feb 23 09:45:22 nixos systemd-timesyncd[19962]: Network configuration changed, trying to establish connection.
Feb 23 09:45:22 nixos systemd-timesyncd[19962]: Contacted time server 216.31.17.12:123 (0.nixos.pool.ntp.org).
Feb 23 09:46:08 nixos systemd-timesyncd[19962]: Network configuration changed, trying to establish connection.
Feb 23 09:46:08 nixos systemd-timesyncd[19962]: Contacted time server 216.31.17.12:123 (0.nixos.pool.ntp.org).
Feb 23 09:49:59 nixos systemd-timesyncd[19962]: Network configuration changed, trying to establish connection.
Feb 23 09:50:00 nixos systemd-timesyncd[19962]: Contacted time server 216.31.17.12:123 (0.nixos.pool.ntp.org).
Feb 23 09:52:24 nixos systemd-timesyncd[19962]: Network configuration changed, trying to establish connection.
Feb 23 09:52:24 nixos systemd-timesyncd[19962]: Contacted time server 216.31.17.12:123 (0.nixos.pool.ntp.org).

Listed under timezones
image

but clicking Switch shows
image

while my menu clock displays UTC-6

Attempting to manually change the time zone returns 3 errors:
Unable to change NTP settings
Unable to set current time
Unable to set timezone

More like ‘I’ve set timezone in config, but despite this OS is using a different one, while claiming it’s using the one selected’ if I get it right.

OP: What does timedatectl on iself report, and timedatectl show? Is it correct there? Maybe it’s more of an issue with Plasma than with timezone itself.

1 Like