24 lines
687 B
Nix
24 lines
687 B
Nix
# SPDX-FileCopyrightText: 2026 Qyriad <qyriad@qyriad.me>
|
|
#
|
|
# SPDX-License-Identifier: EUPL-1.1
|
|
|
|
{ pkgs, lib, config, ... }: let
|
|
cfg = config.dynamicism.for.tzupdate;
|
|
|
|
|
|
# FIXME: referring to config.dynamicism.finalSettings.* in here
|
|
# makes lib.checkAssertWarn in the generic module cause infinite recursion.
|
|
#finalSettings = config.dynamicism.finalSettings.tzupdate;
|
|
finalSettings = config.services.tzupdate.timer;
|
|
in
|
|
{
|
|
dynamicism.for.tzupdate = {
|
|
source-options = [ "services.tzupdate.timer" ];
|
|
|
|
unitDropins."tzupdate.timer" = pkgs.writeText "tzupdate-timer-override.conf" ''
|
|
[Timer]
|
|
OnCalendar=
|
|
OnCalendar=${finalSettings.interval}
|
|
'';
|
|
};
|
|
}
|