mirror of
https://github.com/nix-community/home-manager
synced 2024-09-12 14:26:30 +02:00
Add 'services.lieer', which generates systemd timer and service units to synchronize a Gmail account with lieer. Per-account configuration lives in 'accounts.email.accounts.<name>.lieer.sync'.
26 lines
591 B
Nix
26 lines
591 B
Nix
{ lib, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
options.lieer.sync = {
|
|
enable = mkEnableOption "lieer synchronization service";
|
|
|
|
frequency = mkOption {
|
|
type = types.str;
|
|
default = "*:0/5";
|
|
description = ''
|
|
How often to synchronize the account.
|
|
</para><para>
|
|
This value is passed to the systemd timer configuration as the
|
|
onCalendar option. See
|
|
<citerefentry>
|
|
<refentrytitle>systemd.time</refentrytitle>
|
|
<manvolnum>7</manvolnum>
|
|
</citerefentry>
|
|
for more information about the format.
|
|
'';
|
|
};
|
|
};
|
|
}
|