From 37e104fac85c08552906728448d39a2376a88b4a Mon Sep 17 00:00:00 2001 From: Myned Date: Mon, 30 Dec 2024 13:38:16 -0600 Subject: [PATCH] tzupdate: run service at boot Signed-off-by: Myned --- options/custom/services/tzupdate.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/options/custom/services/tzupdate.nix b/options/custom/services/tzupdate.nix index 5b4b3e6..88229ff 100644 --- a/options/custom/services/tzupdate.nix +++ b/options/custom/services/tzupdate.nix @@ -11,5 +11,10 @@ in { config = mkIf cfg.enable { # https://github.com/cdown/tzupdate services.tzupdate.enable = true; + + # https://github.com/NixOS/nixpkgs/blob/nixos-unstable/nixos/modules/services/misc/tzupdate.nix + systemd.services.tzupdate = { + wantedBy = ["network-online.target"]; # Run at boot without checking for Internet access + }; }; }