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"