diff options
| author | 2026-09-24 15:28:24 +0000 | |
|---|---|---|
| committer | 2026-09-24 15:28:24 +0000 | |
| commit | b0c5452e3bb1e3bdbb27181e331fc959fa43f4fc (patch) | |
| tree | 985f8f3f9ff08519a30dd839e2f0853db1cfdb82 /openspec/changes/archive/2026-09-24-add-automatic-timezone/specs/automatic-timezone/spec.md | |
| parent | 8c6d9629a0b3b723ce2785d26a36c26b8c8d1ba9 (diff) | |
| download | desktop-flake-b0c5452e3bb1e3bdbb27181e331fc959fa43f4fc.tar.gz desktop-flake-b0c5452e3bb1e3bdbb27181e331fc959fa43f4fc.tar.bz2 desktop-flake-b0c5452e3bb1e3bdbb27181e331fc959fa43f4fc.zip | |
Detect NixOS host timezone automatically instead of defaulting to UTC
Enables services.automatic-timezoned so every host's clock/calendar
reflects its actual location with no manual timedatectl step or auth
prompt, since GNOME's own automatic-timezone toggle isn't wired to a
passwordless polkit rule on NixOS the way KDE's is.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Diffstat (limited to 'openspec/changes/archive/2026-09-24-add-automatic-timezone/specs/automatic-timezone/spec.md')
| -rw-r--r-- | openspec/changes/archive/2026-09-24-add-automatic-timezone/specs/automatic-timezone/spec.md | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/openspec/changes/archive/2026-09-24-add-automatic-timezone/specs/automatic-timezone/spec.md b/openspec/changes/archive/2026-09-24-add-automatic-timezone/specs/automatic-timezone/spec.md new file mode 100644 index 0000000..c9c50bf --- /dev/null +++ b/openspec/changes/archive/2026-09-24-add-automatic-timezone/specs/automatic-timezone/spec.md | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | ## Purpose | ||
| 2 | |||
| 3 | Keeps every NixOS host's system timezone in sync with its actual physical location automatically, so the system clock, GNOME's clock/calendar, and log timestamps reflect local time without any manual `timedatectl` step. | ||
| 4 | |||
| 5 | ## ADDED Requirements | ||
| 6 | |||
| 7 | ### Requirement: NixOS hosts detect and apply their timezone automatically | ||
| 8 | Every NixOS host built from this flake's shared system module SHALL determine its current timezone based on location and apply it to the system, without requiring the user to run a manual command or interactively authenticate the change. | ||
| 9 | |||
| 10 | #### Scenario: Timezone is applied after boot with network access | ||
| 11 | - **WHEN** a NixOS host built from this flake's shared system module boots with network connectivity available | ||
| 12 | - **THEN** the system's active timezone is set to the timezone matching the host's current location, without any interactive prompt | ||
| 13 | |||
| 14 | #### Scenario: No per-host opt-in required | ||
| 15 | - **WHEN** a NixOS host is built from this flake's shared system module and its own `hosts/<name>/configuration.nix` does not configure timezone detection itself | ||
| 16 | - **THEN** automatic timezone detection is still active, exactly as if it had been configured directly | ||
| 17 | |||
| 18 | ### Requirement: A host can still pin an explicit fixed timezone | ||
| 19 | A NixOS host built from this flake SHALL be able to override automatic detection with a fixed, explicitly configured timezone when that host's own configuration requires one. | ||
| 20 | |||
| 21 | #### Scenario: Host-level override takes effect | ||
| 22 | - **WHEN** a host's own `hosts/<name>/configuration.nix` sets an explicit timezone at a priority higher than the shared default | ||
| 23 | - **THEN** that host uses the explicitly configured timezone instead of an automatically detected one | ||
