21 lines
591 B
Nix
21 lines
591 B
Nix
|
|
{ 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}
|
||
|
|
'';
|
||
|
|
};
|
||
|
|
}
|