mirror of
https://github.com/nix-community/home-manager
synced 2024-11-13 22:59:44 +01:00
9f46d516fa
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'.
25 lines
591 B
Nix
25 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.
|
|
'';
|
|
};
|
|
};
|
|
}
|