2024-12-21 13:44:44 -05:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
with lib; let
|
|
|
|
cfg = config.custom.services.tzupdate;
|
|
|
|
in {
|
|
|
|
options.custom.services.tzupdate.enable = mkOption {default = false;};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
# https://github.com/cdown/tzupdate
|
|
|
|
services.tzupdate.enable = true;
|
2024-12-30 13:38:16 -06:00
|
|
|
|
|
|
|
# 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
|
|
|
|
};
|
2024-12-21 13:44:44 -05:00
|
|
|
};
|
|
|
|
}
|