lieer: change settings to freeform type

Also add missing options.
This commit is contained in:
Tad Fisher 2021-03-22 17:12:02 -07:00 committed by Robert Helgesson
parent 4b964d2f7b
commit 514acaebb9
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
6 changed files with 241 additions and 123 deletions

View file

@ -1,25 +0,0 @@
{ 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.
'';
};
};
}

View file

@ -51,14 +51,8 @@ let
in {
meta.maintainers = [ maintainers.tadfisher ];
options = {
services.lieer.enable =
mkEnableOption "lieer Gmail synchronization service";
accounts.email.accounts = mkOption {
type = with types; attrsOf (submodule (import ./lieer-accounts.nix));
};
};
options.services.lieer.enable =
mkEnableOption "lieer Gmail synchronization service";
config = mkIf cfg.enable {
assertions = [