From 00e25fa216c74c4b4285ff7d16131cb83c739bb6 Mon Sep 17 00:00:00 2001 From: "RingOfStorms (Joshua Bell)" Date: Tue, 6 Jan 2026 22:53:24 -0600 Subject: [PATCH] try again --- flakes/common/nix_modules/timezone_auto.nix | 11 ++++++++--- hosts/juni/impermanence.nix | 1 - 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/flakes/common/nix_modules/timezone_auto.nix b/flakes/common/nix_modules/timezone_auto.nix index 42d31593..4b322d9d 100644 --- a/flakes/common/nix_modules/timezone_auto.nix +++ b/flakes/common/nix_modules/timezone_auto.nix @@ -1,4 +1,4 @@ -{ lib, ... }: +{ lib, pkgs, ... }: { services.dbus.enable = lib.mkDefault true; services.geoclue2.enable = true; @@ -7,8 +7,13 @@ services.automatic-timezoned.enable = true; systemd.services.automatic-timezoned = { - after = [ "dbus.socket" "systemd-timedated.service" ]; - wants = [ "dbus.socket" "systemd-timedated.service" ]; + after = [ "dbus.socket" "systemd-timedated.service" "geoclue.service" ]; + wants = [ "dbus.socket" "systemd-timedated.service" "geoclue.service" ]; + serviceConfig = { + ExecStartPre = "${lib.getExe' pkgs.coreutils "sleep"} 5"; + Restart = "on-failure"; + RestartSec = "10s"; + }; }; systemd.services.automatic-timezoned-geoclue-agent = { diff --git a/hosts/juni/impermanence.nix b/hosts/juni/impermanence.nix index 7a474f01..a0203519 100644 --- a/hosts/juni/impermanence.nix +++ b/hosts/juni/impermanence.nix @@ -28,7 +28,6 @@ files = [ "/machine-key.json" "/etc/machine-id" - "/etc/localtime" # NOTE: if you want mutable passwords across reboots, persist these, # but you must do a one-time migration (see notes in chat). # "/etc/shadow"