From 9f46d516fa13df70768a3211827d14f456fa6e85 Mon Sep 17 00:00:00 2001 From: Tad Fisher Date: Thu, 20 Feb 2020 23:30:59 -0800 Subject: services.lieer: add module 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..lieer.sync'. --- modules/services/lieer-accounts.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 modules/services/lieer-accounts.nix (limited to 'modules/services/lieer-accounts.nix') diff --git a/modules/services/lieer-accounts.nix b/modules/services/lieer-accounts.nix new file mode 100644 index 00000000000..187f7dff980 --- /dev/null +++ b/modules/services/lieer-accounts.nix @@ -0,0 +1,25 @@ +{ 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. + + This value is passed to the systemd timer configuration as the + onCalendar option. See + + systemd.time + 7 + + for more information about the format. + ''; + }; + }; +} -- cgit v1.2.3